diff --git a/src/modules/task/helpers/taskUpload.helper.js b/src/modules/task/helpers/taskUpload.helper.js index 4f6468b..58d76a8 100644 --- a/src/modules/task/helpers/taskUpload.helper.js +++ b/src/modules/task/helpers/taskUpload.helper.js @@ -43,7 +43,7 @@ const taskUpload = multer({ storage, fileFilter, limits: { - fileSize: 10 * 1024 * 1024, //10MB + fileSize: 5 * 1024 * 1024, //5MB }, }); @@ -53,7 +53,7 @@ const taskUploadErrorHandler = (err, _req, res, next) => { return res.status(413).json({ status: false, data: null, - message: 'File size is too large. Maximum size is 10MB', + message: 'File size is too large. Maximum size is 5MB', code: 413, }); } diff --git a/src/routes/task.routes.js b/src/routes/task.routes.js index e0e52ad..37eed35 100644 --- a/src/routes/task.routes.js +++ b/src/routes/task.routes.js @@ -715,7 +715,7 @@ router.delete('/tasks/:id', verifyJWT, isMentorOrAdmin, taskController.deleteTas * submission_file: * type: string * format: binary - * description: Required when task submission_type is file_upload. Allowed file types are PDF. Max size is 10MB. + * description: Required when task submission_type is file_upload. Allowed file types are PDF. Max size is 5MB. * url_link: * type: string * format: uri @@ -783,7 +783,7 @@ router.post( * submission_file: * type: string * format: binary - * description: Required when related task submission_type is file_upload. Allowed file types are PDF, DOCX, and ZIP. Max size is 10MB. + * description: Required when related task submission_type is file_upload. Allowed file types are PDF, DOCX, and ZIP. Max size is 5MB. * url_link: * type: string * format: uri