PHP File upload fails often with error code UPLOAD_ERR_PARTIAL(the meaning of the code is described in http://php.net/manual/en/features.file-upload.errors.php).
It seems if the file size is over 64KB, uploads always fail. the upload of small file succeed.
The same script works fine with Docker Toolbox or Docker for Mac
I’m getting the same issue on localhost with Node.js and Hapi.js, I’m unable to upload files (multipart/form-data) and I get HPE_INVALID_METHOD errors in the logs. Using docker.local fixes the issue.
Let me know if more detailed logs, details or a repro would help.
I don’t see the UPLOAD_ERR_PARTIAL. Where would I be able to see that?
at step 6 of procedure fore reproducing, you see the text shown below at the top of browser screen.
Please do not close this ticket. I’m also affected by this issue.
You found out a big flaw in Docker for Windows, let them fix it properly please.
I’m using the official WordPress docker image and wondered for over 2 days why I couldn’t upload images properly to the media manager. After running some tests, in my setup it would fail for a 28KB upload, but a 26KB worked.
We’re using Docker for web development, I think maybe 15 to 20 colleagues are using Windows and they are all affected by this bug.
As workaround they’re using small size images, but they’re not able to test image resizing etc.
I’m not affected since I’m using MacOS but since I created the docker images we’re using I receive all the complaints
So I ran some additional tests and through the web, the cutoff size is for a specific server configuration is usually the same. It might be different (original poster said 64KB, my experience was more along the lines of 27KB) might change depending on server configuration but I couldn’t find any setting that would make large uploads work. OS: Windows 10 Pro Docker Version: 1.12.0-rc4
I am also affected by this on two different Windows 10 Pro installations and two different projects. I am not bringing any new info on the table but hope I can contribute to rise this topic up as the issue is blocking my productivity at the moment.