fix: add svg format

This commit is contained in:
2026-06-06 16:38:01 +03:30
parent 9080cf866e
commit 835cba22ed
7 changed files with 17 additions and 14 deletions
@@ -15,7 +15,7 @@ protected function fileFields(): array
{
return [
'sound' => ['column' => 'sound_path', 'folder' => 'background-sounds/sounds', 'rules' => 'nullable|file|extensions:mp3,wav,ogg,flac,aac,m4a,opus,mpga,wma|max:102400'],
'image' => ['column' => 'image_path', 'folder' => 'background-sounds/images', 'rules' => 'nullable|image|max:8192'],
'image' => ['column' => 'image_path', 'folder' => 'background-sounds/images', 'rules' => 'nullable|file|extensions:jpg,jpeg,png,gif,webp,bmp,svg|max:8192'],
];
}
}