title: FTP Upload Problem - 0 bytes transfered
body: <p>In one of our project we are using Apache's FTP client APIs.
   I have to upload xml file to a FTP server, where a process will keep polling that server directory. So using the upload API, I am uploading the xml file with .TRANSFER extension, and after successfully uploading full file, the file will be renamed to .xml file. </p>
  
  <p>The weird problem I am facing was that, sometimes the file size of the file is 0 bytes. but the same file sometimes fully gets uploaded. When I looked at log file, the transfered bytes are 0 kb only. So I am not sure what could be the problem. </p>
  
  <p>I am using linux server and Apache's commons's FTP client APIs.</p>
  
  <p>Any debugging tips and tricks will be helpful.</p>
  
  <p>Regards,
  Srinivas</p>