In a view in laravel i have a form that upload a file:
<form id="file-submit" enctype="multipart/form-data" method="post" action="store">
{{ Form::token() }}
<input id="filename" name="filename" type="file" />
<input type="submit" value="Upload file" id="file-save" class="btn btn-create" />
</form>
In the route file i have:
Route::post('/store', 'MyController@upload');
There in the method, i process the file data.
This works in my local server, i upload it in production, so, this works when i upload files around 5kb, but if i try to upload a large file, around 4MB it breaks with this error:
production.ERROR: exception 'Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException' in <laravel_instance>/protected/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:210
I have the same memory settings in php.ini file (memory_limit, post_max_size, excecution_time, max_input_time, upload_max_size)
Thanks