[ftputil] problem uploading files to ftp server
Stefan Schwarzer
sschwarzer at sschwarzer.net
Tue Jan 30 18:15:54 CET 2007
Hello wcc
On 2007-01-29 23:49, wccppp wrote:
> first time trying our ftputil. i tried to upload files to a ftp server.
> everything works fine except no matter how big the original file size is,
> the uploaded file is only 1-2 KB. but there was no error reported. the
> method i used to upload file is host.upload. any idea what might be causing
> it?
Which versions of ftputil and Python do you use?
I don't have a concrete idea but some suggestions.
Did you actually call the close method of the file-like object?
If not, does it make a difference? It's common that network data
is buffered on the client side and some part of it only
transferred when the file/socket is closed.
Can you transfer the files successfully with a command line or
GUI FTP client from the same client computer?
Can you reproduce the problem with another FTP server? (By the
way, which one on which platform do you use?) How good is the
network connection between client and server?
Stefan
More information about the ftputil
mailing list