Forum

ownCloud upload limits

Gour
25 December 2014, 10:20
Hello,

wishing you happy holidays, but have some problem or let's say dilemma...

I've install latest ownCloud in order to be able to get rid of Google's servers and use my own machine for syncing calendars, contacts, photos, videos and other documents with our family smart phones.

I did follow the ownCloud docs [doc.owncloud.org] which says to put the following:

WebDAVapp = yes

UrlToolkit {
ToolkitID = denyData
Match ^/data DenyAccess
}


However, after I installed everything and tried to upload some photo in the range ~100K, I was always getting 'Request Entity Too Large' error.

Some googling revealed that e.g. Nginx [wiki.archlinux.org] requires setting like:

client_max_body_size 1000M;


To make the story short, I ended up with the following settings for Hiawatha:

...
MaxUploadSize = 2047
MaxRequestSize = 2096128
}


To sync my contacts with the phone and avoid Google, I'm not aware of any other well-supported app besides ownCloud, want to stay with Hiawatha but wonder about the sanity of the above settings or there is nothing wrong with them?


Sincerely,
Gour



Hiawatha version:
Operating System:
Gour
25 December 2014, 10:24
In previous post I forgot to mention another reference [doc.owncloud.org] which, in this case is ownCloud docs itself where there are recommendations for handling of big (>512M) files by using the following PHP settings:

upload_max_filesize = 16G (e.g., to stay consistent with the example value above)
post_max_size = 16G (e.g., to stay consistent with the example value above)


Any comment?
Kapageridis Stavros
27 December 2014, 18:41
Do not know if this still the same. Check hiawatha manual.

MaxUploadSize = <size>
The maximum size of a PUT request entity in megabytes the webserver is allowed to receive. The maximum size is 2047 megabytes.
Default = 1, example: MaxUploadSize = 15
Kapageridis Stavros
27 December 2014, 18:43
Request Entity Too Large can be edited inside hiawatha conf.
Binding {
Port = 80
# Interface = 127.0.0.1
MaxKeepAlive = 100
TimeForRequest = 12,50
MaxUploadSize = 1
MaxRequestSize = 1024 //<---- here
}
This topic has been closed.