fix: mim type audio and video

This commit is contained in:
2026-06-03 11:41:11 +03:30
parent 79303de0fb
commit bae1a2acb0
4 changed files with 6 additions and 6 deletions
@@ -14,7 +14,7 @@ protected function modelClass(): string
protected function fileFields(): array
{
return [
'sound' => ['column' => 'sound_path', 'folder' => 'background-sounds/sounds', 'rules' => 'nullable|mimes:mp3,wav,ogg,flac|max:102400'],
'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'],
];
}