summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/static/js/receive.js5
1 files changed, 4 insertions, 1 deletions
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){