diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index bb80841055b31ed909bf7ce2181ed84213cf21c1..b8972bed6b83f8fd3fa2293248e4e9784d5709f3 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -505,8 +505,8 @@ $(document).ready(function() {
 		$(this).append(input);
 		input.focus();
 		input.change(function(){
-			if(type != 'web' && $(this).val().indexOf('/')!=-1){
-				$('#notification').text(t('files','Invalid name, \'/\' is not allowed.'));
+			if(type != 'web' && ($(this).val().indexOf('/')!=-1 || $(this).val().indexOf('\\')!=-1)) {
+				$('#notification').text(t('files', 'Invalid name, \'/\' or \'\\\' is not allowed.'));
 				$('#notification').fadeIn();
 				return;
 			}