PHP file uploads being “hijacked” by partial uploads

后端 未结 3 1358
悲哀的现实
悲哀的现实 2021-01-03 00:03

I have a site that is receiving 30-40k photo uploads a day and I\'ve been seeing an issue pop up with more frequency now. This issue is this:

Our upload script recei

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 00:32

    PHP's built-in file handling does not support partial uploads.

    Turn off KeepAlives and/or send a 'Connection: close' header after each upload.

    Configure your webserver to send the header 'Allow-Ranges: none'.

提交回复
热议问题