Tag Archives: ftp

Upload file to FTP

This is a simple method that will allow you to upload a file of your choice to an FTP server.

Keep in mind that you will want to do some error catching to ensure that the file exists, the server is responding and so on.

Simply call the method as follows:

Download file from FTP

I’ve created a simple method for you that will download a file from an FTP server and save it in the location you wish.

Keep in mind that ideally you will want to do some error catching for cases that the file does not exist or the server is down and so on.

Simply call the method as follows: