commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Foure <>
Subject [FileUpload] Detecting empty file vs. bad path
Date Thu, 17 Aug 2006 17:52:17 GMT
Hi all,

Is there a way to detect if the file a user selected
in the form is empty (for example an empty log file)
or if the path the user entered is incorrect?  I
looked at the FileItem and I see a size of 0 and a
content-type of "application/octet-stream" in both
cases so I cannot differentiate between the 2.

I am using FileUpload 1.1.1 with IO 1.1


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message