Revert "stop removing the last 2 characters of filenames (no clue why this is a thing)"

This reverts commit 530233796c.
master
Aevann1 2022-11-08 00:21:03 +02:00
parent 530233796c
commit 8e3cf6774b
3 changed files with 5 additions and 5 deletions

View File

@ -276,7 +276,7 @@ document.onpaste = function(event) {
let filename = ''
for (const file of files)
filename += file.name + ', '
filename = filename.toLowerCase()
filename = filename.toLowerCase().slice(0, -2)
f.files = files;
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
}
@ -288,7 +288,7 @@ document.onpaste = function(event) {
let filename = ''
for (const file of files)
filename += file.name + ', '
filename = filename.toLowerCase()
filename = filename.toLowerCase().slice(0, -2)
f.files = files;
document.getElementById('filename-edit-reply-' + id).textContent = filename;
}
@ -298,7 +298,7 @@ document.onpaste = function(event) {
let filename = ''
for (const file of files)
filename += file.name + ', '
filename = filename.toLowerCase()
filename = filename.toLowerCase().slice(0, -2)
f.files = files;
document.getElementById('filename-show-edit-' + id).textContent = filename;
}

View File

@ -101,7 +101,7 @@ document.onpaste = function(event) {
let filename = ''
for (const file of files)
filename += file.name + ', '
filename = filename.toLowerCase()
filename = filename.toLowerCase().slice(0, -2)
f.files = files;
document.getElementById('filename-show').textContent = filename;
}

View File

@ -70,7 +70,7 @@ document.onpaste = function(event) {
let filename = ''
for (const file of files)
filename += file.name + ', '
filename = filename.toLowerCase()
filename = filename.toLowerCase().slice(0, -2)
document.getElementById('file-upload-submit').files = files;
document.getElementById('filename-show-submit').textContent = filename;
}