Data uploading to a ftp server

Aahz aahz at pythoncraft.com
Thu Apr 16 15:24:04 EDT 2009


In article <mailman.3990.1239891128.11746.python-list at python.org>,
Ahmed, Shakir <shahmed at sfwmd.gov> wrote:
>
>I am getting following error while uploading data to a ftp server. Any
>help is highly appreciated.
>
>    ftp.storbinary("stor erp.shp", ffile2,8192)
>  File "C:\Python24\lib\ftplib.py", line 419, in storbinary
>    conn.sendall(buf)
>  File "<string>", line 1, in sendall
>error: (10054, 'Connection reset by peer')

Can you use a regular FTP client?  Please show us the code you use to
establish the connection.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair



More information about the Python-list mailing list