Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: open url python 
Python :: python system year 
Python :: matplotlib add space between subplots 
Python :: python alphabet 
Python :: list all virtualenv in python 
Python :: infinity in python 
Python :: favicon django 
Python :: export python pandas dataframe as json file 
Python :: pandas series values into strings 
Python :: np euclidean distance python 
Python :: first position dict python 
Python :: get first of current month python 
Python :: python how to access clipboard 
Python :: count nan pandas 
Python :: multiple variable input in python 
Python :: python get file extension from path 
Python :: python datetime add minutes 
Python :: python jwt parse 
Python :: how to set a image as background in tkitner 
Python :: python os checj if path exsis 
Python :: django docs case when 
Python :: how to refresh windows 10 with python 
Python :: django get superuser password 
Python :: exclude columns pandas 
Python :: making spark session 
Python :: superscript print python 
Python :: marks input using list in python 
Python :: train_test_split without shuffle 
Python :: isinstance numpy array 
Python :: f string curency format 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =