How to limit the uploading file size in python?

Fuzzyman fuzzyman at
Thu Jul 21 09:37:21 CEST 2005

Hello Prabahar,

It entirely depends on the mechanism you are using to receive the file
(there is no generic solution).

Is it within a CGI ? The normal way would be to check the file sized
and discard if it's too big. You'll have to do it within your code -
but it's probably a one line check !

Best Regards,


More information about the Python-list mailing list