We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca18d4 commit b15971dCopy full SHA for b15971d
modules/electrophysiology_uploader/php/upload.class.inc
@@ -122,6 +122,14 @@ class Upload extends \NDB_Page
122
$candID = $values['candID'] ?? null;
123
$visitLabel = $values['visit'] ?? null;
124
125
+ if (empty($request->getUploadedFiles()) && empty($values)) {
126
+ $upload_max_size = \Utility::getMaxUploadSize();
127
+ return new \LORIS\Http\Response\JSON\InternalServerError(
128
+ "The uploaded file size ($upload_max_size) exceeds " .
129
+ "the upload_max_filesize or post_max_size directive in php.ini"
130
+ );
131
+ }
132
+
133
if (is_null($uploadedFile)) {
134
return new \LORIS\Http\Response\JSON\BadRequest(
135
'No file uploaded'
0 commit comments