You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by C D <cd...@yahoo.com> on 2002/04/11 02:23:07 UTC
full path name on file upload+MultipartIterator question
Hey Guys,
1) Is it true that, for security reasons, the full
path of a file that a client types in the <html:file>
element during a file upload, is never available to
the server?
(I see only a getFileName() on FormFile)
2) I see a lot of emails floating around on the common
MultipartIterator error
(javax.servlet.ServletException: MultipartIterator: no
multipart request data sent..)
when one calls two back to back actions, where
only the first action needs to deal with the multipart
data.
I couldnt make out if this issue/bug is resolved
as I still see this error.
Any light on this is appreciated..
Thanks in advace,
CD
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: full path name on file upload+MultipartIterator question
Posted by andexor <an...@yahoo.com>.
#1 is true, but I don't think it has much to do with security. Probably more like the path on the
server may not be the same as the path on the client and the OS might be different, too.
You can get around this silly limitation if necessary. Just add a hidden field to your HTML and
add some JavaScript to copy from the file box to the hiddend field before you submit the form.
Ed
--- C D <cd...@yahoo.com> wrote:
> Hey Guys,
>
> 1) Is it true that, for security reasons, the full
> path of a file that a client types in the <html:file>
> element during a file upload, is never available to
> the server?
> (I see only a getFileName() on FormFile)
>
> 2) I see a lot of emails floating around on the common
> MultipartIterator error
> (javax.servlet.ServletException: MultipartIterator: no
> multipart request data sent..)
> when one calls two back to back actions, where
> only the first action needs to deal with the multipart
> data.
> I couldnt make out if this issue/bug is resolved
> as I still see this error.
> Any light on this is appreciated..
>
> Thanks in advace,
>
> CD
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>