Uploading Files : FTP Client « Network « Ruby
- Ruby
- Network
- FTP Client
Uploading Files
require 'net/ftp'
ftp = Net::FTP.new('ftp.domain.com')
ftp.passive = true
ftp.login
ftp.chdir('/your/folder/name/here')
ftp.putbinaryfile('local_file')
ftp.close
Related examples in the same category