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

Hi,
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.
Thanks

Hi,

have a look at our docs:

https://doc.owncloud.com/server/10.0/admin_manual/configuration/files/big_file_upload_configuration.html?highlight=big%20files#configuring-your-web-server

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
upload_max_fileesize
post_max_size
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:

https://central.owncloud.org/search?q=expected%20filesize
https://doc.owncloud.org/server/latest/admin_manual/search.html?q=expected+filesize

and stumbled over the following resources which could help:

https://doc.owncloud.org/server/latest/admin_manual/issues/general_troubleshooting.html?highlight=expected%20filesize#common-problems-error-messages

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.
Thanks,
Markus

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

Hi, we were facing the same problem. At the end it was not about settings in php.ini on owncloud server but on our dedicated NGINX reverse proxy. There was default limit of client_max_body_size set to 1MB.

So if you use NGINX reverse proxy check the client_max_body_size value

Hey,

it seems this setting is not documented at Big File Upload Configuration :slightly_frowning_face:

Maybe i think it could make sense if you (i don’t have a GitHub account) could create a new issue for the ownCloud people at Issues · owncloud/docs-server · GitHub so that this info is incorporated into the documentation?

Hi,

there is a mention in official documentation about the same limit in Apache server, but the default limit is much higher - 1GB. So, you are right, it’s good idea to mention about the same limit on nginx. Just in case when someone using nginx as reverse proxy :slight_smile:

1 Like