summaryrefslogtreecommitdiffstats
path: root/application/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api')
-rw-r--r--application/controllers/api/v1/file.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php
index c291ae879..82060e420 100644
--- a/application/controllers/api/v1/file.php
+++ b/application/controllers/api/v1/file.php
@@ -27,10 +27,7 @@ class file extends \controllers\api\api_controller {
throw new \exceptions\PublicApiException("file/no-file", "No file was uploaded or unknown error occured.");
}
- $errors = \service\files::verify_uploaded_files($files);
- if (!empty($errors)) {
- throw new \exceptions\PublicApiException("file/upload-verify-failed", "Failed to verify uploaded file", $errors);
- }
+ \service\files::verify_uploaded_files($files);
$limits = $this->muser->get_upload_id_limits();
$urls = array();