File Upload Size

Mike Driscoll kyosohma at gmail.com
Mon Oct 13 00:10:49 CEST 2008


On Oct 12, 9:34 am, rodmc <userprogoogle-... at yahoo.co.uk> wrote:
> Hi,
>
> Is there a way to get the size of a file on a remote machine before it
> is uploaded? I would like to write some form of status counter which
> is updated as a fie is uploaded, and also to use this feature to
> prevent files which are too big from being uploaded.
>
> Best,
>
> rod

Looks like ftplib does that. Check the docs:
http://www.python.org/doc/2.5.2/lib/module-ftplib.html

Mike



More information about the Python-list mailing list