title: Uploaded files missing
body: <p>I am uploading file in the server location everytime..but after sometime or next day that location is missing from my system.so i am getting error file not found exception always..</p>
  
  <p>Here is my code</p>
  
  <pre><code>        String fileName = file.getFileName().trim();
             if(!("").equals(fileName)){  
                 long timeStamp = com.mysql.jdbc.Util.getCurrentTimeNanosOrMillis();
                  String fileExtension = fileName.substring(fileName.lastIndexOf("."));               
                  fileName = fileName.substring(0,fileName.lastIndexOf("."));             
                  String newFileName = fileName.concat("-").concat(String.valueOf(timeStamp)).concat(fileExtension);
                  String foldercreated = folder + "\\" + newFileName;
                  dto.setReplyDocName(newFileName);
                  fos = new FileOutputStream(foldercreated);
                  fos.write(file.getFileData());
                  dto.setReplyDocLocation(foldercreated);
                  fos.flush();
                  fos.close();
  
          }
  </code></pre>