mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Updated comment
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
7787fe42c8
commit
321414f6e3
|
@ -104,7 +104,7 @@ class ImageUploadRequest extends Request
|
||||||
\Log::debug('File extension is: '.$ext);
|
\Log::debug('File extension is: '.$ext);
|
||||||
|
|
||||||
if (($image->getMimeType() == 'image/avif') || ($image->getMimeType() == 'image/webp')) {
|
if (($image->getMimeType() == 'image/avif') || ($image->getMimeType() == 'image/webp')) {
|
||||||
// If the file is a webp, we need to just move it since webp support
|
// If the file is a webp or avif, we need to just move it since webp support
|
||||||
// needs to be compiled into gd for resizing to be available
|
// needs to be compiled into gd for resizing to be available
|
||||||
Storage::disk('public')->put($path.'/'.$file_name, file_get_contents($image));
|
Storage::disk('public')->put($path.'/'.$file_name, file_get_contents($image));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue