mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
proper error message
This commit is contained in:
@@ -294,7 +294,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
||||
|
||||
$maximumFileSize = $bucket->getAttribute('maximumFileSize', 0);
|
||||
if($maximumFileSize > (int) App::getEnv('_APP_STORAGE_LIMIT',0)) {
|
||||
throw new Exception('Server error', 500);
|
||||
throw new Exception('Error bucket maximum file size is larger than _APP_STORAGE_LIMIT', 500);
|
||||
}
|
||||
|
||||
$fileSize = new FileSize($maximumFileSize);
|
||||
|
||||
Reference in New Issue
Block a user