1 Reply Latest reply on Jan 12, 2010 8:53 AM by 843789

    Images uploaded are being stored in Web server folder


      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.