1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-06 12:02:45 +03:00

Images: Added base avif support

Includes handling for animated avif images like apng.
This commit is contained in:
Dan Brown
2025-05-23 16:12:03 +01:00
parent d29b14ebfd
commit 3a9d18a6cd
3 changed files with 46 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ abstract class Controller extends BaseController
*/
protected function getImageValidationRules(): array
{
return ['image_extension', 'mimes:jpeg,png,gif,webp', 'max:' . (config('app.upload_limit') * 1000)];
return ['image_extension', 'mimes:jpeg,png,gif,webp,avif', 'max:' . (config('app.upload_limit') * 1000)];
}
/**