title: How to save a file in Bluemix server?
body: <p>I deployed a servlet in Bluemix (bluemix-liberty) that saves a file (sent from UI) in the Bluemix server. I used below code but I am getting permission denied exception:</p>
  
  <pre><code>DiskFileItemFactory fileFactory = new DiskFileItemFactory();
  File filesDir = new File("/");
  fileFactory.setRepository(filesDir);
  this.uploader = new ServletFileUpload(fileFactory); 
  </code></pre>
  
  <p>I am getting the following exception:</p>
  
  <blockquote>
    <p>Exception in uploading file. Processing of multipart/form-data request  failed. /upload_3d1b2086_152b5c954a4__8000_00000000.tmp (Permission denied)</p>
  </blockquote>
  
  <p>Is there any option to get permission to save file in Bluemix or any other way to save a file in the Bluemix server? Thanks in advance.</p>