title: HTML 5 file upload using java servlet access denied exception
body: <p>I'm trying the file upload feature, which seems to work, as the file appears where it should, in the C:/xampp/tomcat/temp folder. However, the response comes back as the following error:</p>
  
  <pre><code>java.io.FileNotFoundException: C:\xampp\tomcat\temp (Access is denied) java.io.FileNotFoundException: C:\xampp\tomcat\temp (Access is denied)
  The server encountered an internal error that prevented it from fulfilling this request.
  java.io.IOException: java.io.FileNotFoundException: C:\xampp\tomcat\temp (Access is denied)
  
  
  Main.FileUpload.doPost(FileUpload.java:50)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  root causejava.io.FileNotFoundException: C:\xampp\tomcat\temp (Access is denied)
      java.io.FileOutputStream.open(Native Method)
      java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)
      java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)
      org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.write(DiskFileItem.java:391)
      Main.FileUpload.doPost(FileUpload.java:50)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  </code></pre>
  
  <p>What should I do about this, if anything?</p>