diff --git a/Services/server/src/controllers/fileController.ts b/Services/server/src/controllers/fileController.ts index 2e2be9f..94bd207 100644 --- a/Services/server/src/controllers/fileController.ts +++ b/Services/server/src/controllers/fileController.ts @@ -146,7 +146,7 @@ export class FileController extends Controller { @Path() folderName: string, ) { if (body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/`; @@ -257,7 +257,7 @@ export class FileController extends Controller { }, ): Promise { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/`; diff --git a/Services/server/src/controllers/subFolderFileController.ts b/Services/server/src/controllers/subFolderFileController.ts index 6d109b4..acbf655 100644 --- a/Services/server/src/controllers/subFolderFileController.ts +++ b/Services/server/src/controllers/subFolderFileController.ts @@ -152,7 +152,7 @@ export class SubFolderFileController extends Controller { @Path() subFolderName: string, ) { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/${subFolderName}/`; @@ -264,7 +264,7 @@ export class SubFolderFileController extends Controller { }, ) { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/${subFolderName}/`;