This commit is contained in:
wayanrivan
2026-04-16 07:07:38 +07:00
parent e57bee0311
commit 6de20634d4
2 changed files with 10 additions and 4 deletions

View File

@ -538,9 +538,15 @@ export class PharmacyInfoController {
const file = req.files.file as fileUpload.UploadedFile;
// Validate file size (max 1MB)
const maxSize = 1024 * 1024; // 1MB
const maxSize = 10 * 1024 * 1024; // 10MB
if (file.size > maxSize) {
return ReturnHelper.errorResponse(res, 400, 400, Language.lang.failed_insert, "File size exceeds 1MB limit");
return ReturnHelper.errorResponse(
res,
400,
400,
Language.lang.failed_insert,
"File size exceeds 10MB limit"
);
}
// Validate file type