On Thu, 21 Nov 2002, Susana Pereira wrote:

>
> Hi, I'm using FileUpload project and i've found some difficulties with
> FileItem implementation.

What kind of difficulties have you had? Could they be solved with a
generally useful change to the FileUpload component?

> I would like to use my own implementation of FileItem processing a different
> disk storage. But, in FileUpload you're using a Class Cast to
> DefaultFileItem:
>     OutputStream os = ((DefaultFileItem) item).getOutputStream();.

That's a bug. The intent was that you be able to specify your own
implementation. I will fix this.

>
> So I've tried to extend DefaultFileItem, but I cannot access class private
> fields such as 'storeLocation' and/or 'byteStream'.
> My questions are: Do I have to extend DefaultFileItem? (what's the interest
> of an Interface if I can't use a different implementation?)
> Why isn't getOutputStream() a FileItem method?

Good question! I predict that will be the fix... ;-)

--
Martin Cooper


> Is there some workaround to this problem?
>
> Thanks.
> Susana.
>
>
>
>
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to