Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s

This commit is contained in:
Adisak 2025-10-31 18:52:12 +07:00
commit 3d0f228b8e

View file

@ -564,6 +564,9 @@ export class SubFileController extends Controller {
let fileList = !body.replace
? await Promise.all(
body.fileList.map(async ({ fileName, ...props }) => {
if(fileName.length > 85){
throw new Error("ไม่สามารถอัปโหลดไฟล์ได้ เนื่องจากชื่อไฟล์มีความยาวเกินที่ระบบกำหนด กรุณาปรับชื่อไฟล์ให้สั้นลง");
}
const dotIndex = fileName.lastIndexOf(".");
const originalName =
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(0, dotIndex) : fileName;