Answer the question
In order to leave comments, you need to log in
How to change the default "weight" for the transferred ftplib file?
There is such a code, but by default the "weight" of the transferred file is only 8192 bytes, how can I change the default setting to be able to transfer larger files?
import ftplib
filename= "*****.xlsx"
ftp= ftplib.FTP('*********')
ftp.login('*******', '********')
ftp.cwd('*******')
uploadfile= open('(**/***************/*******', 'rb')
ftp.storlines('STOR ' + filename, uploadfile)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question