fp = open(local_path, "rb") # buf_size = 4096 # f.storbinary("STOR {}".format(remote_path), fp, buf_size) f.storbinary("STOR {}".format(remote_path), fp) fp.close()
python ftp upload jpg
Guess you like
Origin blog.csdn.net/Hodors/article/details/115074908
Ranking