@@ -242,7 +242,7 @@ function upload_status() { | |||
$(obj).children().html(file.obj.name); | |||
$(obj).children().css('width', "50%"); | |||
if ( file.progress==1) { | |||
if ( file.error ) { | |||
if ( file.error != null ) { | |||
$(obj).children().html(file.name + ': ' + file.error); | |||
$(obj).children().addClass('bg-danger'); | |||
$(obj).children().removeClass("progress-bar-animated"); |