diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index a079deb95396eb73119320bc319caa9a1087b61f..3ba473e023d6f8b60d3f4f2b6940ec4663df5a2a 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -452,7 +452,7 @@ $(document).ready(function() {
 		input.focus();
 		input.change(function(){
 			var name=$(this).val();
-			if(name.indexOf('/')!=-1){
+			if(type != 'web' && name.indexOf('/')!=-1){
 				$('#notification').text(t('files','Invalid name, \'/\' is not allowed.'));
 				$('#notification').fadeIn();
 				return;