I have a Ubuntu 16.04 server with apache 2.4 and php 7.1. The php.ini has the following settings:

max_file_uploads    20
memory_limit    512M
post_max_size   256M
upload_max_filesize 128M

Folder permissions are alright, plenty of free space on the hdd (100+ GB)

And still can't upload a file bigger then ~40MB, php keeps throwing error code 3: UPLOAD_ERR_PARTIAL (which means: 'The uploaded file was only partially uploaded.'). No other error or log entry generated.

This driving me nuts. Is there any other variable/system setting i don't know about?

Any help really appreciated!

  • Is your disk full? – Michael Hampton Aug 10 '18 at 18:39
  • No, "plenty of free space on the hdd (100+ GB)" – user482716 Aug 11 '18 at 12:16

Found the problem. The apache had a RequestReadTimeout header=20-40,MinRate=500 body=20-40,MinRate=500 setting which means the request's forced to timeout after max 40 sec... Another thing to watch out for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.