keep getting upload php $_FILES error = 3 (partially uploaded)

前端 未结 2 409
旧巷少年郎
旧巷少年郎 2021-01-19 00:21

I am using dropzone extension for Yii framework to upload some files by registered users. Everything working well but some users for some files that they trying to upload it

相关标签:
2条回答
  • 2021-01-19 01:03

    in my case, the "partially uploaded" problem happened when uploading medium/large files using a slow internet connection.

    The solution that works for me was set some Apache configurations in httpd.conf file:

    TimeOut 300
    KeepAliveTimeout 10
    RequestReadTimeout handshake=0 header=20-1200,MinRate=200 body=20,MinRate=200
    

    I hope it help.

    0 讨论(0)
  • 2021-01-19 01:13

    As php documentation says, this error is

    UPLOAD_ERR_PARTIAL is given when the mime boundary is not found after the file data. A possibly cause for this is that the upload was cancelled by the user (pressed ESC, etc).

    Also there are some more variants to check:

    1. Permissions are wrong (i doubt, cause it will break all users).

    2. Not enough free space on server.

    3. This error occures when uploading from iOS.

    4. This error can occure when uploading folder (due to browser limitations). On Mac OSX it occures 100%.

    So this is possible errors to check. Hope this will help.

    0 讨论(0)
提交回复
热议问题