forked from rDrama/rDrama
master
parent
e2c1abd8f2
commit
be292043a0
|
@ -509,7 +509,7 @@ if (file_upload) {
|
||||||
{
|
{
|
||||||
const filename = file_upload.files[0].name
|
const filename = file_upload.files[0].name
|
||||||
file_upload.previousElementSibling.textContent = filename.substr(0, 50);
|
file_upload.previousElementSibling.textContent = filename.substr(0, 50);
|
||||||
for (const s of ocument.getElementById('IMAGE_FORMATS').value.split(','))
|
for (const s of document.getElementById('IMAGE_FORMATS').value.split(','))
|
||||||
{
|
{
|
||||||
if (filename.toLowerCase().endsWith(s)) {
|
if (filename.toLowerCase().endsWith(s)) {
|
||||||
const fileReader = new FileReader();
|
const fileReader = new FileReader();
|
||||||
|
|
Loading…
Reference in New Issue