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:
DiskFileItemFactory fileFactory = new DiskFileItemFactory();
File filesDir = new File("/");
fileFactory.setRepository(filesDir);
this.uploader = new ServletFileUpload(fileFactory);
I am getting the following exception:
Exception in uploading file. Processing of multipart/form-data request failed. /upload_3d1b2086_152b5c954a4__8000_00000000.tmp (Permission denied)
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.