Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMartin Brown
Courses Plus Student 10,510 PointsMy Local Wordpress file size is Shocking .........
Hello Everyone,
I was just wondering if anyone out there had any ideas about changing the Max file size on a media install on Wordpress (Local Install !!!!!). I am stuck on 2mb, spent many hours online and all i can find is changes on hosted wordpress. I have fiddled with the php.ini file but nothing !!!!!
3 Answers
I Dilate
3,983 PointsHi Martin,
There are several factors that can affect the maximum upload file size (I assume that's what you mean by 'maximum filesize'.
Are you running your WP install on a localhost environment, or on a server somewhere?
This guide provides some good insight...
http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
Note, they suggest you check for restrictions set by a theme (if you've installed a new one) in functions.php. You might try inserting the lines they suggest in there if you're not having any luck by changing php.ini.
Lastly, assuming you're on a linux server, you may be able to change the upload file size options through .htaccess.
Anyway, that article is pretty good at explaining it - better than I can here.
If you don't succeed through their advice, come back and let me know some more information?
Good luck, Rich
Martin Brown
Courses Plus Student 10,510 PointsAfter many hours I must have become very blind to the whole problem. The article you sent through chap, Bravo thank you very much for taking the time, cheers. Now all i need to decide is what is a good size to add so the site dosent come to a grinding holt !!!!! ................ LOL - Cheers again .................... Many Regards Martin
I Dilate
3,983 PointsHey Martin,
No problem at all.
That can be a tough issue to deal with - I guess you'll need to think carefully about who's going to be using it.
If you're building the site for a client, then people are usually quite familiar with relatively small maximum upload file sizes anyway (5mb is pretty typical for most email web apps, for example), and providing them with near unlimited space is going to cause your site to bloat, and bring you infinitely more headaches than them searching for a better way to host their larger files.
Glad you got things moving forward, Rich