From bb689784548558eb2ab082022ec5baeef69ebc80 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 24 Feb 2021 08:15:02 -0800 Subject: [PATCH] Update main-1.js --- js/main-1.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/main-1.js b/js/main-1.js index 38402705..9f428f77 100644 --- a/js/main-1.js +++ b/js/main-1.js @@ -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 () {