Small file get uploaded but not large file in Laravel

后端 未结 6 1513
無奈伤痛
無奈伤痛 2020-12-09 09:28

I have this action in controler

    public function upload() {
  // getting all of the post data
  $file = array(\'image\' => Input::file(\'image\'));
  /         


        
6条回答
  •  时光取名叫无心
    2020-12-09 10:08

    Well I found the answer, The things mentioned above to make change in php.ini about upload_max_filesize and post_max_size are infact the only thing to solve the problem mentioned by the question.

    The only problem was that I am using wamp and apparently wamp has multiple php.ini files one in php folder and one in apache folder. I made changes in PHP folder when the change should be made to the one inside apache folder.

提交回复
热议问题