By default, most Drupal setups have an upload file size limit of 2 megabytes. That's enough for uploading most content like images and short Word documents and PDF files. But start uploading larger files like audio or video, and you'll quickly run into this frustrating upload limit. Some video files can be hundreds of megabytes! Here's how you can get around the limit.
First, Modify Drupal
- Go to your Admin menu. Under Site Configuration, select File Uploads
- Find the Default maximum file size per upload and set it to 128mb
Second, Modify Apache
- Find your php.ini file. On my machine, this is located at /etc/php5/apache2/php.ini
- Find upload_max_filesize and change it so it reads:
upload_max_filesize = 128M
- Find post_max_size and change it also:
post_max_size = 128M
- Restart apache
Yay, you should be able to upload huge files now! Make sure you set your up your per-user upload settings if you want non-admin users to be able to upload huge files.
Alternate Apache Option: Edit your .htaccess file
If you don't have access to your php.ini file, you should be able to set the php options in your .htaccess file using the following syntax:
php_value upload_max_filesize 128M
php_value post_max_size 128M