title: Empty file uploaded to ftp server
body: <p>I am using apache's FTP client to upload file to the ftp server. But the issue is there is no exception thrown from the code but the file uploaded is empty. What could be the reason for this.
  I am uploading same file twice but with different name as below.</p>
  
  <pre><code>    ftpClient.storeFile(fileDir+"//"+"actualFileName", inputStream));
      ftpClient.storeFile(fileDir+"//"+"differentFileName", inputStream));
  </code></pre>