Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ftp upload file

import ftplib
session = ftplib.FTP('server.address.com','USERNAME','PASSWORD')
file = open('kitten.jpg','rb')                  # file to send
session.storbinary('STOR kitten.jpg', file)     # send the file
file.close()                                    # close file and FTP
session.quit()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #ftp #upload #file
ADD COMMENT
Topic
Name
7+6 =