I have this action in controler
public function upload() {
// getting all of the post data
$file = array(\'image\' => Input::file(\'image\'));
/
Other answers refers saying only about the php.ini directiress.
I would like to give answer considering both php.ini and the Laravel Validation Rule
First check your php.ini
For the upload_max_filesize and post_max_size and change to your desired file size
upload_max_filesize = 100M
post_max_size = 100M
You shall have your rule like this
public static $updaterules = array(
'uploadedimage' => 'image|max:5000'
);
Additional information :
You shall check for the file format for image by
'uploaded' => 'mimes:jpeg,bmp,png'
Read more about Laravel validation here
As the questioner didn't noticed which php.ini file is being used by the server. I am updating my answer accordingly so it might be useful for someone who has similar problems in future
To find the full configuration about the php.ini file which is currently being used by your server.
For Linux
php -i | grep php.ini
For Windows
php -i | find /i "Configuration File"
From a php file
i.e.,