-
Notifications
You must be signed in to change notification settings - Fork 919
Description
Bug report
What I did
I made a crud controller using image
field. Here's the image field's declaration:
CRUD::field('featured_image')
->type('image')
->label('Featured Image')
->crop(true)
->aspect_ratio(1.96)
->disk('public');
What I expected to happen
Image cropped and uploaded as usual
What happened
for some reason when I use images with big size or big resolution, it returns error 404 method not found for POST /admin/{entity}/{primary_key}
What I've already tried to fix it
- resize the image to small resolution (around 700-800px width) so backpack won't return 404 error. (always works)
- convert the image to .jpg (sometimes still return 404 error, intermittent)
And also, this is error is not showing in my local machine. So this is either because of server error, connection (images took some time to upload to server, unlike in localhost), or the particular image problem
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version
the output is:
Local:
PHP VERSION:
PHP 7.4.5 (cli) (built: Apr 14 2020 16:17:34) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
LARAVEL VERSION:
v8.19.0@f5f331cee60f1bbe672503b7eb9ba5b22b2ceacb
BACKPACK VERSION:
4.1.30@62856b1f01fc3e05c80140fc22f85ea2aac8368c
Server:
PHP VERSION:
PHP 7.4.13 (cli) (built: Nov 25 2020 21:00:01) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
LARAVEL VERSION:
v8.19.0@f5f331cee60f1bbe672503b7eb9ba5b22b2ceacb
BACKPACK VERSION:
4.1.30@62856b1f01fc3e05c80140fc22f85ea2aac8368c