mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update main-1.js
This commit is contained in:
@@ -75,6 +75,9 @@ async function uploadFiles(filesRaw, destination, otherParams) {
|
|||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
reader.onloadend = function () {
|
reader.onloadend = function () {
|
||||||
|
if (otherParams.includes('filename')) {
|
||||||
|
otherParams = 'filename=' + file.name;
|
||||||
|
}
|
||||||
destination(reader.result, otherParams);
|
destination(reader.result, otherParams);
|
||||||
}
|
}
|
||||||
reader.onerror = function () {
|
reader.onerror = function () {
|
||||||
|
Reference in New Issue
Block a user