Updated comment

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-20 12:38:48 +00:00
parent 7787fe42c8
commit 321414f6e3

View file

@ -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));