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 trial

WordPress WordPress Basics Managing Media in WordPress Native Audio File Support in WordPress

Problem with maximum upload size limit..

I have tried to upload an audio file, but its size was 3.8 MB so it given an error message 'exceeds the maximum upload size'

Can I increase the maximum upload size for my wordpress site or not?

Thanx in advance

Samuel Allemang
Samuel Allemang
28,116 Points

You should talk to your hosting company about this, most likely. Not my area of expertise, but I believe upload sizes can be capped and increased within the php.ini file that defines a number of variables for your server's PHP configuration. If that doesn't work or doesn't answer your question, please reply and let me know.

2 Answers

Andy Swinford
Andy Swinford
8,152 Points

In your php.ini file, you need to change the following to a larger size. You may need to talk to your provider.

upload_max_filesize

post_max_size

Thanx Samuel and Thanx Andy..

It worked for me