Improve file size error message.
This commit is contained in:
parent
42498c16b6
commit
ead1269ced
@ -39,7 +39,7 @@ function setupMulter(app: Application) {
|
||||
|
||||
const fileSize = parseInt(req.headers['content-length'] as string);
|
||||
if (fileSize > 1024 * 1024)
|
||||
return callback(new Error('File size not supported'));
|
||||
return callback(new Error('File size must be less than 1MB'));
|
||||
|
||||
callback(null, true);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user