1 Reply Latest reply: Jan 12, 2010 2:53 AM by 843789 RSS

    Images uploaded are being stored in Web server folder

    843789
      Hi,

      I am trying to upload image files to application running on Web Server. Here is what i do

      boolean isMultipart = ServletFileUpload.isMultipartContent(request); //Try to read the header and its request content type

      FileItemFactory factory = new DiskFileItemFactory();
      ServletFileUpload upload = new ServletFileUpload(factory);.
      items = upload.parseRequest(request); //Try reading the image and parse the file to get file details.



      Question is, why is any uploaded image being stored under /opt/SUNWwbsvr/https-www/config/ directory? This is certainly not a good thing happening.

      Any suggestions appreciated.

      Nitin