From 1131b4dcf7bd7d9dd84128bc21635e9ebc9dabb8 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 28 Jun 2019 16:13:30 +0000 Subject: [PATCH] firefox-android can't multiselect --- copyparty/web/up2k.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index d96280cb..f540051b 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -212,6 +212,14 @@ function o(id) { fobj = fobj.getAsFile(); } + try { + fobj.size; + } + catch { + return alert( + 'Due to a browser bug, Firefox-Android can only do one file at a time:\n' + + 'https://bugzilla.mozilla.org/show_bug.cgi?id=1456557'); + } var entry = { "n": parseInt(st.files.length.toString()), "t0": new Date().getTime(), // TODO remove probably