diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index c60e1a3752ac28be021b7cba3481eb5c0b799a7f..3ac8ef59560bd1876c7c21f1a420127386de378f 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -31,7 +31,6 @@ foreach ($_FILES['files']['error'] as $error) {
 $files=$_FILES['files'];
 
 $dir = $_POST['dir'];
-$dir .= '/';
 $error='';
 
 $totalSize=0;