Fix response code of multiple upload

This commit is contained in:
philipp lang 2024-11-13 13:28:03 +01:00
parent e9975e9c5a
commit 9870ac8bab
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class MediaController
$collection->runCallback('after', $model->fresh());
return $isSingle ? MediaData::from($medias->first()) : MediaData::collect($medias);
return $isSingle ? MediaData::from($medias->first()) : response(MediaData::collect($medias), 201);
}
protected function storeDeferred(Request $request)