Improve file size error message.

This commit is contained in:
theADAMJR 2023-05-29 22:54:28 +01:00
parent 42498c16b6
commit ead1269ced

View File

@ -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);
},