User Tools

Site Tools


curl:upload_a_file_with_ftp

This is an old revision of the document!


Curl - Upload a file with FTP

curl -T uploadfilename -u username:password ftp://sitename.com/myfile

The ‘uploadfilename’ file will be copied to the remote site and named ‘myfile’. If the destination filename is eliminated the file will be copied with the original name. By default the file will be copied to the root directory.

To copy to some other directory specify the directory after the site name;e.g.

curl -T uploadfilename -u username:password ftp://sitename.com/directory/myfile
curl/upload_a_file_with_ftp.1467417483.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki