I'm using apache commons fileupload to upload a file ...I need to throw an error message if the file is not found, this happens if the user mistypes the path or edits the browsed path ... I can check the size but it is also possible to upload a file with 0 bytes...
Please post your code so it's easier to say what to modify.
Tha�s M. K. M. Firmino
Tha�s Manfrim Firmino
Joined: Apr 12, 2004
I was wondering... when you read the request on the server side maybe you will be no able anymore to distinguish if the file exists or not since you said you can accept empty files.
What about doing a local validation before sending the file name to the server? I mean, you can create a function before submiting the form verifying if the file exists (so it will be done on the local machine).
I hope my suggestion help. Please let me know if you need further explanation.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com