Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I change the Maximum upload file size? I would like to be able to upload 10Mb at a time.

alt text

share|improve this question

5 Answers 5

up vote 8 down vote accepted

This is due to the PHP limitations on file size uploads. If you have access to your php.ini file, you can modify the following lines:

upload_max_filesize = 10M
post_max_size = 10M
max_execution_time = 300

If you don't have access to the php.ini file (such as a hosting situation), you may need to contact your webhost and see if they will increase it for you. I have also seen users create a php.ini file with just these values and place it in the file where WordPress is installed. If your PHP instance allows for "inherited configurations" it will allow these local settings to override the global.

The other solution would be to add the code dynamically into WordPress to make this change for you. This article has a nice way of doing it through a "plugin". I've seen dubious results from this approach (some report success, some report no success) so I can't say for sure if it will work for you.

share|improve this answer
1  
Thanks a ton! I am new to Wordpress and PHP so this was very helpful. Just a note for anyone else out there, if you're running on IIS, you'll need to restart IIS after editing your php.ini file. –  jessegavin Oct 12 '10 at 15:31
    
at alast a solution for this stupid problem... thank you... –  Paul May 5 '11 at 12:51
    
post_max_size = 10M max_execution_time = 300 is not needed in this case. –  Tommixoft May 23 '12 at 19:23
    
post_max_size is needed, actually, since both that and the upload parameter control the max upload size. –  Otto Aug 30 '12 at 18:02

This worked for me. I just went into cpanel /file manager and created a new php.ini file. Then i entered the text below: upload_max_filesize = 10M post_max_size = 10M max_execution_time = 300

Works 100%

Just put the php.ini file in the wp-admin directory

share|improve this answer
    
Thanks for the notes about where to place the file! –  dthorpe Jun 17 '11 at 18:11

Somehow I had to create a php.ini file which I uploaded to the wp-admin directory but I also had to add the memory_limit = 32M line. Without that line, the limit is not increased in in Wordpress 3.3.1

memory_limit = 32M
upload_max_filesize = 16M
post_max_size = 16M
max_execution_time = 300 
share|improve this answer

Take a look here : http://mynotes.farkess.com/2012/08/02/wordpress-increase-media-upload-size/ it's worked for me with wordpress 3.4.1

share|improve this answer
1  
Welcome to WPSE Libertux. Please post full solutions rather than just links to your site. Otherwise the solution becomes useless when the link dies, and we want WPSE to be a useful resource - not a link farm :) –  Stephen Harris Sep 27 '12 at 9:53

I had the issue where I couldn't update/add to the php.ini file. I ended up adding the following lines to my .htaccess file to change the upload size:

 php_value upload_max_filesize 5M
 php_value post_max_size 5M
 php_value max_execution_time 200
 php_value max_input_time 200

That changes the upload limit to 5, and allows extends the timeout time while uploading larger files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.