How to restrict the size of file being uploaded apache + django

后端 未结 4 1943
北荒
北荒 2021-01-17 00:49

How to restrict the size of file being uploaded. I am using django 1.1 with apache. Can I use apache for this and show some html error page if say size is bigger then 100MB.

4条回答
  •  不思量自难忘°
    2021-01-17 01:12

    apache has a server setting for max file size..(also dont forget max post size). I do not believe apache can show an error page on its own, you can probably use python for that. unfortunetly I know nothing obout python (yet) so I can't really help you beyond that. I know php can do that easily so I'm sure there is a method for python.

提交回复
热议问题