jump to navigation

Increase WordPress Upload File Size Limit June 9, 2011

Posted by Tournas Dimitrios in Wordpress - 3.

WordPress’ Media Uploader makes it very easy for users to upload images, videos, documents and more to their website. It’s a great tool for users who want to bypass often cumbersome and confusing FTP clients and have access to their media instantly. Often, users want to upload files through the media tool that is over the default size limit (8M) . Actually this limit is defined by web-server’s configuration file . On an hosted environment only the administrator has access to this file . Usually hosting companies allow us trough .htaccess or php.ini files to override some of the default configuration directives . Let’s use the .htaccess file to override the default upload limit .

The .htaccess file is a critical file on your server for directing visitors and to pass configuration options to your server without the need to restart him . One error in this file and your site is down , so be careful how to handle it . Paste the following code inside this file ” .htaccess”

php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 800
php_value max_input_time 400

Of course your hosting provider must have configured his server to allow you to override the default value  . So be politely to get in contact with him before applying these modifications .

After the configuration of the .htaccess file :


1. Diamond-Blizzard - December 18, 2011

Thanks!It worked for me!

tournasdimitrios1 - December 18, 2011

Welcome , I’m glad it was helpful

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s