title: SFTP via JSch is throwing error 4: Failure
body: <p>I am facing a peculiar issue while trying to SFTP a file from Windows to Unix server. The error "stack trace" is -</p>
  
  <pre class="lang-none prettyprint-override"><code>4: Failure
      at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2846)
      at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:2459)
      at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp.java:2465)
      at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:683)
      at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:475)
      at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:365)
  </code></pre>
  
  <p>I have searched a lot on other forums but could not get to the root cause. I have observed one more thing - the file name, I am trying to SFTP, is *.xml when I change it to *.XML the SFTP is "successful". Very weird could not identify the issue. I am trying this using JSch Java API. But I have seen the same issue while trying the WinSCP front end.</p>