I am getting error while upload 5mb video file in wordpress media section. How can I solve this issue?


1 Answer 1


You need to make changes in the PHP configuration file (php.ini).

For example, if you are working on a local server and using XAMPP, you can access this file in two ways:

  • Open the XAMPP application and go to Apache > Config > PHP (php.ini)

  • Or open the XAMPP installation folder, usually at C:\xampp, and you can find the file at php\php.ini.

Once you open the file, search for upload_max_filesize and increase the limit value to something that you prefer, like 80M (that will be a maximum size of 80Mb).

If you are using a local server on a Mac, there will be a similar process of finding the php.ini file of your PHP installation and changing the limit in the same way.

This error usually occurs for local PHP installations and that is why I referred to them here. If you have this error on an online server, then again, you need to find a way to edit the php.ini file of your server.

  • I tried edit php.ini file before but I still having problem. Commented Mar 28, 2017 at 13:54
  • If you are using a local server, make sure to stop and restart it so that the new settings take effect. Also, let me know what OS are you working on, what program are you using.
    – AncientRo
    Commented Mar 28, 2017 at 14:21
  • My site is working in live. Now I solved the this issue.I have added upload code in config file in wordpress. Commented Mar 29, 2017 at 10:32

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