FIle Upload Not Working From Outside The Eclipse
Hello there , i am uploading image from my hard drive to folder located at server side . There is no any problem with my code. It's also working fine in eclipse.But when i export project and place it in Apache Tomcat Webapps folder and run it from there then it is not uploading the file . It's giving error as file "The system cannot find the file specified" "java.io.FileNotFoundException: $ S A $.jpg (The system cannot find the file specified)
But it's working fine in eclipse.What to do please suggest any solution fast to me so that it will run outside eclipse also.
Re: FIle Upload Not Working From Outside The Eclipse
The path to the file must not point to where the file is located. Either change the path to point to the file or move the file to where the path points.
Print out the value of the file's absolute path to see where the program is looking for the file.