How to limit the uploading file size in python?

Tim Roberts timr at probo.com
Fri Jul 22 02:04:23 EDT 2005


praba kar <prabapython at yahoo.co.in> wrote:
>
>       In Php we can limit the uploading file size
>by php.ini configuration file. But In python what
>way we can limit the file uploading size.
>kindly let me know.

Unlike PHP, Python is a general-purpose language that is not targetted
specifically at the web, so it has no native concept of "uploading".

You can do this by using the LimitRequestBody directive in your Apache
configuration or .htaccess file.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list