Image size
Created 7 years ago by minkyov

How can I make the size of uploaded images bigger than 2mbs?

ryanthompson  —  7 years ago

You can increase the config related to uploads in your php.ini then it'll likely use the new value. If it doesn't then you will want to edit the configuration for the field in the case it was added through the control panel.

minkyov  —  7 years ago

I have done both it still keeps it to a maximum of 2mb.

ryanthompson  —  7 years ago

Here is where that is occurring: https://github.com/anomalylabs/file-field_type/blob/master/src/FileFieldType.php#L83

Other similar field types are similar. Did you get both those values changed? If this is a field setup from the control panel - you verified that your configuration was upped to system allowed max as well? Maybe some screens / links to examples so we can make doubly sure 😊

minkyov  —  7 years ago

I'll post pictures soon because now I have 0 MB upload size.

keevitaja  —  7 years ago

nginx config http section needs a client_max_body_size 5m;

minkyov  —  7 years ago

http://imgur.com/a/vFYbT I've posted some pictures for you to take a look at and probably give some advice.

Thanks!

ryanthompson  —  7 years ago

So post_max_size=10 for example works fine?

minkyov  —  7 years ago

It changed the maximum size of the uploads but now when I try to open the files module from the admin panel I get a white screen. If i try to upload a new picture or change the one that I have I get error 500. I look at the error log but I have no idea how to fix the issue.

ryanthompson  —  7 years ago

Your storage/logs don't have any trace of the error? Do you have imagick / GD installed? Are the images quite large? It sounds like an issue creating the thumbnails.

minkyov  —  7 years ago

They do have a trace of the error but based on what it shows I don't know how to solve the issue. The images are not quite large because I had them uploaded while I still had the 2M limit to size. I can show the error log if necessary.

ryanthompson  —  7 years ago

Can you verify you have GD php lib installed? Error log wouldn't hurt either go ahead and post that as well.

minkyov  —  7 years ago

Yes the plugin is installed and enabled.

[2017-03-10 14:37:41] local.ERROR: exception 'ErrorException' with message 'Argument 2 passed to Barryvdh\Debugbar\LaravelDebugbar::modifyResponse() must be an instance of Symfony\Component\HttpFoundation\Response, null given, called in C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\barryvdh\laravel-debugbar\src\Middleware\Debugbar.php on line 60 and defined' in C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\barryvdh\laravel-debugbar\src\LaravelDebugbar.php:497 Stack trace:

0 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\barryvdh\laravel-debugbar\src\LaravelDebugbar.php(497): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(4096, 'Argument 2 pass...', 'C:\xampp\htdocs...', 497, Array)

1 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\barryvdh\laravel-debugbar\src\Middleware\Debugbar.php(60): Barryvdh\Debugbar\LaravelDebugbar->modifyResponse(Object(Illuminate\Http\Request), NULL)

2 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(137): Barryvdh\Debugbar\Middleware\Debugbar->handle(Object(Illuminate\Http\Request), Object(Closure))

3 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

4 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

5 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(137): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))

6 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

7 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

8 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(137): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))

9 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

10 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

11 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(137): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))

12 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

13 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

14 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(137): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))

15 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

16 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

17 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(150): Illuminate\Pipeline\Pipeline->then(Object(Closure))

18 C:\xampp\htdocs\OlympicsDev\pyrocms\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(117): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))

19 C:\xampp\htdocs\OlympicsDev\pyrocms\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

20 {main} {"identification":{"id":"db29da2a-f4d4-4b37-b240-8e06b41f691a"}}

This is the error log. Currently one more thing went wrong. http://imgur.com/a/1uxYC Looks as if the css is not read and it is not displayed as a bar as it should be.

ryanthompson  —  7 years ago

This should be resolved in latest version. Run composer update