Help FTP upload
Mike Fletcher
mfletch at tpresence.com
Fri Nov 10 17:18:01 EST 2000
Win32 binary mode is required for binary files:
fh = open( filename, 'rb')
HTH,
Mike
-----Original Message-----
From: Gilles Lenfant [mailto:glenfant at equod.com.nospam]
Sent: Friday, November 10, 2000 5:13 PM
To: python-list at python.org
Subject: Help FTP upload
Hi,
I try to make an FTP upload (Python 1.5.2/Win32) to a ProFTPD/Linux server:
ftps = ftplib.FTP('ahost', 'anuser', 'apasswd')
...
fh = open(filename, 'r')
...
But the file in the FTP server is corrupted and smaller than the original
one.
When I upload with an usual FTP client, it works correctly.
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list