diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4dc8a58e17..e1a0491cdc 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2380,7 +2380,11 @@ event.preventDefault(); }); input.blur(function() { - form.trigger('submit'); + if(input.hasClass('error')) { + restore(); + } else { + form.trigger('submit'); + } }); },