# ownCloud Administrators Manual

# Dealing with Big File Uploads

It’s useful to know limiting factors, that make it impossible to exceed the values given by the ownCloud-system:

## Not outnumberable upload limits:

- < 2GB on 32Bit OS-architecture
- < 2GB with Server Version 4.5 or older
- < 2GB with IE6 - IE8
- < 4GB with IE9 - IE10

## Other recommendable preconditions:

- Make sure, that the latest version of PHP (at least 5.4.9) is installed
- Disable user quota. This means: set the user quota of the account, you are currently logged in, to “unlimited”. This is important, because you possibly could not watch otherwise, whether the desired changes take effect.

## Enabling uploading big files

Note

The order of the following steps is important! If you swap steps described below, the settings may fail.

Go to the admin section in the ownCloud-WebUI and do the following:

- Under “File handling” set the Maximum upload size to the desired value (e.g. 16GB)
- Click the “save”-Button

Configuring your webserver

ownCloud comes with a .htaccess - file which propagates all config to your webserver. To adapt those settings go to the ownCloud - Folder on your server and set the following two parameters inside the .htaccess file:

- `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)

If you don’t want to use the shipped .htaccess - file, outcomment those options there and edit them in your global php.ini file:

- Under Debian or SUSE and their derivatives this file resides at `/etc/php5/apache2/php.ini`
- On Windows, you can find this file within `C:\Program Files (x86)\PHP\PHP.ini`

Set the following two parameters inside the php.ini to the same value as chosen inside the admin-section one step before:

- `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)

Output Buffering allows you to get performance benefits in some setups. Please make sure you know what you are doing before using it in production. As previously mentioned, add this option in your .htaccess file or edit your php.ini file:

- `output_buffering = 16384` (e.g., to stay consistent with the example value above)

As you can see, the “output_buffering” has to be given in MegaBytes but as a plain figure (without size-units as ‘M’ or ‘G’)

These client configurations have been proven by testing maximum file sizes of 16 GB:

- Linux 32 Bit: Ubuntu, Firefox => 16GB
- Windows 8 64 Bit: Google Chrome => 8GB

Note: You will need a minimum of 16GB (e.g, to stay consistent with the example value above), in your upload_tmp_dir. Normally this points to /tmp. If your /tmp has not enough space, you can change the value of upload_tmp_dir in your php.ini