How to limit the uploading file size in python?
fuzzyman at gmail.com
Thu Jul 21 09:37:21 CEST 2005
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 !
More information about the Python-list