Catch file too large error in artworks

This commit is contained in:
Alex Cabal 2025-05-04 22:33:52 -05:00
parent 7e3566ec93
commit 97c2fbeb61

View file

@ -160,7 +160,7 @@ catch(Exceptions\InvalidPermissionsException){
catch(Exceptions\ArtworkNotFoundException){ catch(Exceptions\ArtworkNotFoundException){
Template::ExitWithCode(Enums\HttpCode::NotFound); Template::ExitWithCode(Enums\HttpCode::NotFound);
} }
catch(Exceptions\InvalidArtworkException | Exceptions\InvalidArtworkTagException | Exceptions\InvalidArtistException | Exceptions\InvalidImageUploadException | Exceptions\InvalidFileUploadException | Exceptions\InvalidUrlException $ex){ catch(Exceptions\InvalidArtworkException | Exceptions\InvalidArtworkTagException | Exceptions\InvalidArtistException | Exceptions\InvalidImageUploadException | Exceptions\InvalidFileUploadException | Exceptions\InvalidUrlException | Exceptions\InvalidRequestException $ex){
// If we were passed a more generic file upload exception from `HttpInput`, swap it for a more specific exception to show to the user. // If we were passed a more generic file upload exception from `HttpInput`, swap it for a more specific exception to show to the user.
if($ex instanceof Exceptions\InvalidFileUploadException){ if($ex instanceof Exceptions\InvalidFileUploadException){
$ex = new Exceptions\InvalidImageUploadException(); $ex = new Exceptions\InvalidImageUploadException();