Hi,
I am coding a
JSP file, where there is a need for File Upload. I am using
<input type="file" ...> tag.
Now, suppose end user enters some garbage value in Textfield (in File Upload control), & clicks Submit button it gives javascript error on status bar ('Error on Page' on left hand side bottom region), It says
Access is Deniedwhere i am trying to submit this form. If i browse some file using Browse button it works fine.
On click of a Submit button, i am calling a Javascript function which checks for 'Submit' button click & if Submit is clicked, sets action (.action) property to neccessary URL & submits the page to new action url. With alert i have checked for the correctness of the URL & it is fine in both cases.
My question is, Is it possible somehow so that i could say to a user that "file name is incorrect" or similar.
I can't check for file path as this system could be accessed from Windows as well as Linux OS machines.
Thanks in Advance,
Shriniwas