1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00
This commit is contained in:
August 2024-05-13 09:52:39 +02:00 committed by GitHub
commit d7c0505cb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();