Upload problem for files >1MB via the web interface (expected file size ... got ...)

I installed ownCloud on a shared server hosted by Namecheap. Everything seems to work fine except the upload. If I upload a file bigger than about 1MB, the progress bar moves until the end and then I get the message e.g. "expected file size 1292173 got 1048120.
I couldn't find anything about this problem searching with Google.


have a look at our docs:


Thanks for the quick reply - I will check it out

The link is about "Uploading big files >512MB". But I cannot even upload a 2MB file.

I increased
php_value max_input_time
php_value max_execution_time

...via php.ini, but it didn't help

have you tried contacting the support at "Namecheap"?

If you have installed owncloud correctly you should not have any problems.

You could search the owncloud log for hints. You can find it in Admin - Settings - general.

I did the following search here:


and stumbled over the following resources which could help:


Hi Tom,
actually I've already come across this page when searching for an answer in the web, but discarded it quickly because I thought it's related to webdav access. Now I checked the logs and it says "webdav" also. So I'll check it out again.

I know this thread is super-old, but just in case someone else stumbles upon it, the way I fixed it was:

./occ config:app:set files max_chunk_size --value 1000000

1 Like