In trying to bulletproof file uploading I noticed something odd.
If I type some junk in the field for the file name and hit Submit, I get
a file of size 0. I can deal with that. If I type in a directory name
in my home directory (admittedly a dumb thing to type) nothing seems to
happen and I get this error in my log file.
ERROR 2004-02-13 14:09:18,679 handleRequest(CommonsMultipartRequestHandler.java:241)
Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
...
This error seems to be thrown before it even gets to my UploadAction.
How do I catch this and tell the user the file typed in is invalid?
--
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]