Setting a Limit to the Maximum Size of an Upload

Joey C. joeyjwc at gmail.com
Tue Oct 25 05:22:32 EDT 2005


I'm afraid on my interpreter, this works.

>>> if os.path.getsize("C:\\Documents and Settings\\Joey\\Desktop\\file.txt") <= 1000:
>>>	print "<= 1000."

<= 1000.

No problems there, as you can see.




More information about the Python-list mailing list