Title: RE: Get the web uploaded file

Hi.
Check out the example given on www.orionsupport.com about FileUpload.
The API docs has a 'snag':
It talks about InputStream when it should be PostFileInputStream.
This will be fixed in the near future.
But to stay out of problems, check the orionsupport page.
WR

> -----Original Message-----
> From: Storm Linux User [mailto:[EMAIL PROTECTED]]
> Sent: den 12 november 2000 20:43
> To: Orion-Interest
> Cc: [EMAIL PROTECTED]
> Subject: Get the web uploaded file
>
>
> At 15:00 12.11.00 , you wrote:
> >It's not form commercial use. It's for my research project
> for getting my
> >master's degree in Electrical Engineering ... I'm not
> concered about securety
> >right now.
>
>
> >then hack right on. will be fun. the security aspects of
> this could easily
> >fill a chapter of your thesis if it fits your topic ;-).
>
> Thanks, Robert.
>
> The problem is that I'm not able to get the file that I
> uploaded using a HTML
> form like:
>
> <form method="post" action="my_servlet">
> <input type="file" name="my_class_file">
> <input type="submit">
> </form>
>
> How do I get the file in the servlet and make an object of it?
>
> I've tried:
>
> File f = (File)request.getAttribute("my_class_file");
>
> But it does not work. It compiles if I change to:
>
> Object obj = request.getAttribute("my_class_file");
>
> But then, how do I transform an Object to a File, and then,
> as the file is a
> compiled class, how do I create an instantiate this class to
> call some
> methods of it?
>
> Thanks again!
> []s
> Guilherme Ceschiatti
> [EMAIL PROTECTED]
>

Reply via email to