mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Catch file too large error in artworks
This commit is contained in:
parent
7e3566ec93
commit
97c2fbeb61
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue