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

后端 未结 4 1976
北荒
北荒 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 00:59

    I mean before uploading the file

    On client side it isn't possible...

    I suggest to write a custom upload handlers and to override receive_data_chunk.

    Example: QuotaUploadHandler

提交回复
热议问题