Merge ae225c3685
into 5e8a18eec3
This commit is contained in:
commit
d7c0505cb0
|
@ -486,7 +486,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
|||
// Check if file size is exceeding allowed limit
|
||||
$fileSizeValidator = new FileSize($maximumFileSize);
|
||||
if (!$fileSizeValidator->isValid($fileSize)) {
|
||||
throw new Exception(Exception::STORAGE_INVALID_FILE_SIZE, 'File size not allowed');
|
||||
throw new Exception(Exception::STORAGE_INVALID_FILE_SIZE, "The uploaded file with size ($fileSize bytes) exceeds the configured maximum ($maximumFileSize bytes) for this bucket. Please increase the file size limit for this bucket or try a smaller file.");
|
||||
}
|
||||
|
||||
$upload = new Upload();
|
||||
|
|
Loading…
Reference in a new issue