Merge branch 'develop' into dev

* develop:
  revert code
  add length name validate post("{subId}")
  fix
  fix to thorw
This commit is contained in:
Warunee Tamkoo 2025-11-04 09:08:05 +07:00
commit 0446269014

View file

@ -185,9 +185,6 @@ export class DocumentController extends Controller {
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(0, dotIndex) : fileName;
const extension =
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(dotIndex) : "";
if([...originalName].length > 95){
originalName = [...originalName].slice(0, 95).join('');
}
let i = 1;
while (list.findIndex((v) => v.fileName === fileName) !== -1 || used.includes(fileName)) {
fileName = `${originalName} (${i++})`;