diff options
Diffstat (limited to 'lib/Controller/ImageController.php')
-rw-r--r-- | lib/Controller/ImageController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 54a10336d..200119cd4 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -27,6 +27,7 @@ namespace OCA\Text\Controller; use Exception; use OCA\Text\Service\SessionService; +use OCA\Text\UploadException; use OCP\AppFramework\Http; use OCA\Text\Service\ImageService; use OCP\AppFramework\Controller; @@ -218,7 +219,7 @@ class ImageController extends Controller { $error = $phpFileUploadErrors[$file['error']]; } if ($error !== null) { - throw new Exception($error); + throw new UploadException($error); } return $file; } |