You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Joe Smith <ap...@yahoo.com> on 2004/12/16 20:42:06 UTC

common file upload throws exception for // in file path


I am using common file upload API in the java program, and it is able 
to upload any files except the user tries to enter the backslash, or 
double slashes (//) in the browse file text box, not using browse button. 
For example, C:/test.java will produces the following error. But if I 
do C:\test.java, then it's perfect 

A file or directory in the path name does not exist.) at 
java.io.FileOutputStream.open(Native Method) at 
java.io.FileOutputStream.(FileOutputStream.java(Compiled Code)) at 
java.io.FileOutputStream.(FileOutputStream.java(Inlined Compiled Code)) at 
org.apache.commons.fileupload.DefaultFileItem.write(DefaultFileItem.java(Compiled Code)) 

so the only workaround is to implement javascript myself? Maybe common 
file upload doesn't take care of those cases.

please advise. thanks


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.