Merge branch 'develop' into dev
* develop:
revert code
add length name validate post("{subId}")
fix
fix to thorw
This commit is contained in:
commit
0446269014
1 changed files with 0 additions and 3 deletions
|
|
@ -185,9 +185,6 @@ export class DocumentController extends Controller {
|
||||||
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(0, dotIndex) : fileName;
|
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(0, dotIndex) : fileName;
|
||||||
const extension =
|
const extension =
|
||||||
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(dotIndex) : "";
|
dotIndex !== -1 && !fileName.startsWith(".") ? fileName.slice(dotIndex) : "";
|
||||||
if([...originalName].length > 95){
|
|
||||||
originalName = [...originalName].slice(0, 95).join('');
|
|
||||||
}
|
|
||||||
let i = 1;
|
let i = 1;
|
||||||
while (list.findIndex((v) => v.fileName === fileName) !== -1 || used.includes(fileName)) {
|
while (list.findIndex((v) => v.fileName === fileName) !== -1 || used.includes(fileName)) {
|
||||||
fileName = `${originalName} (${i++})`;
|
fileName = `${originalName} (${i++})`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue