HOW TO: Increase file size for Media Upload
-
I ran into this issue with WordPress…a client made a video and wanted to upload it to her website…but when she tried using the Media uploader, it said the upload limit was set to 8mb!
Now, after a search (multiple ones, different terms, I realized this is a common problem. I use GoDaddy servers, btw.
The problem in fixing the issue is this: out of all the suggestions I found on my searches, including these forums, nothing worked.
I had access to the php.ini file and inserted the following into it:
memory_limit = 100M
upload_max_filesize = 192M
post_max_size = 100M
file_uploads = Onphp.ini was in my root folder, and WordPress was installed into a subdirectory. (/site). Changing the root folder php.ini file did not fix the issue. I then copied that same file to the WordPress root directory. Still no go.
Then I copied it to the wp-admin folder (trying anything at this point). I had read (somewhere) that this had fixed the problem for someone. It still did not work.
As I was sitting there, getting frustrated (btw, IF WordPress would just have an option setting to do this that creates the proper file, it would be awesome), I was also getting desparate. The client needed the file uploaded within a few hours.
And then it occured to me.
GoDaddy had switched to PHP 5 already. So I went into the /wp-admin folder, and renamed the php.ini file I’d copied there to php5.ini.
It worked!
So here are the proper steps:
1) Use FTP to download a copy of your php.ini file
2) modify that file to have the following lines:
memory_limit = 100M
upload_max_filesize = 192M
post_max_size = 100M
file_uploads = On
3) save, close and rename that file to “php5.ini” and upload it to the wp-admin folder of your wordpress installNote:
I did not remove thememory_limit = 100M
upload_max_filesize = 192M
post_max_size = 100M
file_uploads = OnFrom any of the php.ini files I’d created along the way…didn’t think it actually mattered.
If you follow these steps, you can customize the file size limit for WordPress. I set mine to 100mb, but you can pretty much choose the size, according to your webspace available (I have 150 GB myself). To test it, I successfully uploaded a 37 mb Photoshop file.
- The topic ‘HOW TO: Increase file size for Media Upload’ is closed to new replies.