Table of Contents Show Table of Contents
IntroductionIf you’re expecting big file uploads, some considerations have to be taken into account. Setups based on your needs can be configured. General Considerations
The space temporarily consumed in the upload directory will not count against the user quota. If a user has no quota left in his peronal storage and the quota excludes external mounts, uploads to a windows network drive share as example will succeed. The file temporarily created in the upload directory will not count against his personal storage.
Configuration via .htaccess/user.ini
Set the following parameters inside the corresponding file using your own desired values, as in the following examples, both files are located in the ownCloud root folder:
If you see PHP timeouts in your log files, increase the timeout values, which are in seconds, as in the example below. Use the
Configuring via PHP Global SettingsIf you don’t want to use the ownCloud
See the Loaded Configuration File section of PHP Version and Information to find your relevant php.ini files. Set the following parameters inside the corresponding php.ini file using your own desired file size values, as in the following example:
If you see PHP timeouts in your log files, increase the timeout values, which are in seconds, as in the example below:
Configuring via a Virtual HostYou can configure php parameters also per virtual host - if you have access to the Apache configuration file. This eliminates the need to maintain custom settings in a
If you see PHP timeouts in your log files, increase the timeout values, which are in seconds, as in the example below:
Configuring via ownCloudAs
an alternative to the
General Upload IssuesVarious environmental factors could cause a restriction of the upload size. Examples are:
Apache with mod_reqtimeoutThe mod_reqtimeout Apache module could also stop large uploads from completing. If you’re using this module and uploads of large files fail, either disable it in your Apache config or increase the configured Disable mod_reqtimeout on Ubuntu On Ubuntu, you can disable the module by running the following command: On CentOS, comment out the following line in
When you have run
Apache with mod_fcgid
Setting Long-Running UploadsFor very long-running uploads those lasting longer than 1h to public folders, when chunking is not in effect, To estimate a good value, use the following formula:
For the value of "slowest assumed upload connection", take the upload speed of the user with the slowest connection and divide it by two. For example, let’s assume that the user with the slowest connection has an 8MBit/s DSL connection; which usually indicates the download speed. This type of connection would, usually, have 1MBit/s upload speed (but confirm with the ISP). Divide this value in half, to have a buffer when there is network congestion, to arrive at 512KBit/s as the final value. |