fix: add svg format
This commit is contained in:
@@ -138,7 +138,7 @@ public function store(Request $request)
|
||||
'file' => 'required|file|extensions:mp3,wav,ogg,flac,aac,m4a,opus,mpga,wma|max:20971520',
|
||||
'type' => 'nullable|in:public,private',
|
||||
'image_id' => 'nullable|exists:images,id',
|
||||
'image' => 'nullable|image|max:8192',
|
||||
'image' => 'nullable|file|extensions:jpg,jpeg,png,gif,webp,bmp,svg|max:8192',
|
||||
'playlist_id' => 'nullable|exists:music_playlists,id', // single (backward compatible)
|
||||
'playlist_ids' => 'nullable|array', // multiple
|
||||
'playlist_ids.*' => 'integer|exists:music_playlists,id',
|
||||
@@ -241,7 +241,7 @@ public function update(Request $request, $id)
|
||||
'type' => 'nullable|in:public,private',
|
||||
'file' => 'nullable|file|extensions:mp3,wav,ogg,flac,aac,m4a,opus,mpga,wma|max:20971520',
|
||||
'image_id' => 'nullable|exists:images,id',
|
||||
'image' => 'nullable|image|max:8192',
|
||||
'image' => 'nullable|file|extensions:jpg,jpeg,png,gif,webp,bmp,svg|max:8192',
|
||||
'duration' => 'nullable|integer|min:1',
|
||||
'is_active' => 'nullable|boolean',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user