diff --git a/progit/static/upload.js b/progit/static/upload.js index fe8b97d..4380c84 100644 --- a/progit/static/upload.js +++ b/progit/static/upload.js @@ -78,6 +78,26 @@ function doUpload(csrf_token, files) { 1000 /* 1 000ms = 2 s */ ); }, + error: function(data) { + $("#progress").hide(); + var text = data.responseText; + if ( !text || text === "" ) { + text = '
An error occured when uploading your file. Could it be ' + + 'that it exceeds the maximum limit allowed?
' + + 'Please contact an admin if this problem persist or is ' + + 'blocking you. Thanks!
'; + } + var _elt = $('