2

How do I upload file to FTP server?

Share:

This example demonstrate how to upload file to FTP server.

Filed in: Commons Net

2 Responses to "How do I upload file to FTP server?"

  1. Eden says:

    Hi,

    I am trying to upload a file of 3MB to FTP server using that code, but when I run it, it uploads only 40KB of the file. What to do?

    Thanks,
    Eden

    • Wayan Saryada says:

      Hi Eden,

      Did you get any error message when uploading the file? You can try to call the client.getReplyCode() and client.getReplyString() to see if any error occurred while uploading. Just print the reply code and reply string message using System.out.println() after the client.storeFile() line.

Leave a Reply

Submit Comment

© 2014 Java Examples - Developed with