From 97c2fbeb61fa7aca7f852be3be94cbfb80f91b7e Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 4 May 2025 22:33:52 -0500 Subject: [PATCH] Catch file too large error in artworks --- www/artworks/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/artworks/post.php b/www/artworks/post.php index 080cb570..d1d06b7d 100644 --- a/www/artworks/post.php +++ b/www/artworks/post.php @@ -160,7 +160,7 @@ catch(Exceptions\InvalidPermissionsException){ catch(Exceptions\ArtworkNotFoundException){ 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($ex instanceof Exceptions\InvalidFileUploadException){ $ex = new Exceptions\InvalidImageUploadException();