From 422179a6b58210fff34d78994e6069c2924a0997 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 17 Feb 2019 09:58:57 -0800 Subject: On error, remove the upload div --- share/static/js/receive.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/static/js/receive.js b/share/static/js/receive.js index 2aca03df..36bca07c 100644 --- a/share/static/js/receive.js +++ b/share/static/js/receive.js @@ -81,7 +81,10 @@ $(function(){ ajax.addEventListener('error', function(event){ console.log('error', event); - flash('error', 'Error uploading'); + flash('error', 'Error uploading: '+filenames.join(', ')); + + // Remove the upload div + ajax.$upload_div.remove() }, false); ajax.addEventListener('abort', function(event){ -- cgit v1.2.3-54-g00ecf