Skip to content
Advertisement

The uploaded file exceeds the upload_max_filesize directive in php.ini error while uploading plugin

When I tried to upload a plugin for my WordPress template in wamp 2.0 I got an error:

The uploaded file exceeds the upload_max_filesize directive in php.ini

How to fix this error?

Advertisement

Answer

Seeing as though you’ve mentioned WAMP, I’m going to assume you can edit the php.ini file?

If you left click on the WAMP icon in the status bar, select the PHP menu and then click on the php.ini file in that menu. Just open it in Notepad is fine.

Then in Notepad, do a search (CTRL+F) for “upload_max_filesize”, and then you can change the value that is set there.

I don’t remember what the default is, but for mine, I have it set to “200M” (without the quotes). This means 200mb.

Save the file, close it, and then restart WAMP.

You should then be right to upload your plugin

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement