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 Video File Support in WordPress

Omar Silva
Omar Silva
2,535 Points

I recieve the error message "video-file.m4v exceeds the maximum upload size for this site."

When I try to upload the video, it tells me the file size exceeds their upload size.

I got the same message, apparently it only supports files up to 2MB and the video provided in project files is 2.16. I've downloaded some random short video from youtube just to try the feature...

1 Answer

Michael Pashkov
Michael Pashkov
22,024 Points

If i got it right - it's server's settings. Checkout php.ini file. I got same problem and increased parameters through php.ini. I have mamp

C:\MAMP\bin\php\php7.2.1

by notepad or other text editor

; Maximum allowed size for uploaded files. upload_max_filesize = 4M (was upload_max_filesize = 2M)

John Nguyen
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 Points

Thank you for noting this, I was having the same problem and you helped guide me to fixing it.

Notes for others: 1) Find out what version of PHP you are using. I did this by going to Mamp > Open WebStart Page > phpInfo. My version was 7.2.10. On this same page, I found where my "Loaded Configuration File"(php.ini) was located on my computer.

2) Make sure MAMP is not running when looking for this file. If MAMP is running, you will not be able to find the php.ini file

3) I went to the directory(as found in step 1) C:\MAMP\conf\php7.2.10 and edited this php.ini file. I CTRL+F'ed for the line with 'Maximum allowed size for uploaded files' and updated it to 8M. I saved, restarted the MAMP servers, and then I was able to upload the video file.