How to detect if a user uploaded a file larger than post_max_size?

后端 未结 6 1380
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 12:00

How should I go about handling http uploads that exceeds the post_max_size in a sane manner?

In my configuration post_max_size is a few MB

6条回答
  •  猫巷女王i
    2020-12-06 12:16

    You may need to revert to something that uses flash/silverlight etc. such as: http://www.plupload.com/

    Or look at a Java-based solution...

    Basically something that will break the upload into more managable (and resumable) chunks, and then re-assemble them on the server side.

提交回复
热议问题