I’m hosting the API for an app on Apache2/Ubuntu 14.04. Users of the app should be able to upload image but there is something in the server configuration prohibiting. I checked the uploadmaxfile_size in php.ini and it should be just fine for the photo I am trying to upload. The error I am getting within the app is “chunk size is larger than 512 kb”. I tried adding “LimitRequestBody 0” to the apache configuration file but still does not work. Where possible could there be another limitation for users uploading?

I checked permissions on the folder and they were set to 775. I changed and tried 755 - still nothing. Please help!!

I know this is a server issue because the application works fine on our old godaddy server.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

The answer for this is likely to switch to a streaming protocol instead of a chunked upload. Without knowing more about your code, I can recommend looking at this for a potential implementation: http://www.webiny.com/blog/2012/05/07/webiny-file-upload-with-html5-and-ajax-using-php-streams/