Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

wordpress

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?

like image 240
beginner Avatar asked May 01 '16 05:05

beginner


People also ask

What is upload_max_filesize?

upload_max_filesize is the maximum size of an uploaded file. This is the limit for a SINGLE file. post_max_size, on the other hand, is the limit of the entire body of the request (which may include multiple files as well as other stuff).


1 Answers

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

like image 150
Denno Avatar answered Oct 10 '22 01:10

Denno