Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012
    Rep Power

    Angry 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" " $ S A $.jpg (The system cannot find the file specified) Method)<init>(Unknown Source)<init>(Unknown Source)
    action.StudentChangeImage.doGet(StudentChangeImage .java:65)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)


    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.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default 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.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. File upload
    By bekir in forum Java Servlet
    Replies: 2
    Last Post: 04-08-2011, 03:17 PM
  2. file upload in jsp
    By mudit222 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-20-2010, 08:10 PM
  3. :large file upload to server(chunk upload)
    By tommy_725 in forum Networking
    Replies: 0
    Last Post: 10-16-2009, 12:21 AM
  4. how to upload a file?
    By tommy in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 06-30-2008, 02:50 PM
  5. File Upload
    By ShoeNinja in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-09-2007, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts