summaryrefslogtreecommitdiff
path: root/static/upload.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/upload.js')
-rw-r--r--static/upload.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/upload.js b/static/upload.js
index 6bf1aa0..b65684e 100644
--- a/static/upload.js
+++ b/static/upload.js
@@ -114,8 +114,10 @@ const labelClicked = (e) => {
}
const fileSelected = (_file) => {
- file = _file || videoInput.files[0]
+ const fileObj = _file || videoInput.files[0]
if (_file) videoInput.value = ''
+
+ if (fileObj) file = fileObj
if (!file) return
if (file.size > iMaxFilesize) {