Update main-1.js

This commit is contained in:
Kyle
2021-02-24 08:15:02 -08:00
parent 18ab4ef82c
commit bb68978454

View File

@@ -75,6 +75,9 @@ async function uploadFiles(filesRaw, destination, otherParams) {
files.forEach(file => {
var reader = new FileReader();
reader.onloadend = function () {
if (otherParams.includes('filename')) {
otherParams = 'filename=' + file.name;
}
destination(reader.result, otherParams);
}
reader.onerror = function () {