From ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 00:51:39 +0200 Subject: Upload.php now can upload in direcotires other than root --- php/readdir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php/readdir.php') diff --git a/php/readdir.php b/php/readdir.php index 8194580..24d3c49 100644 --- a/php/readdir.php +++ b/php/readdir.php @@ -4,8 +4,8 @@ $user=$_SESSION['user_object']; $path=$_POST['path']; -//echo '[ { "name": "file1.txt", "mimetype": "text/plain", "is_directory": false }, { "name": "file2.pdf", "mimetype": "application/pdf", "is_directory": false }, { "name": "dir", "mimetype": "", "is_directory": true } ] '; $ret=get_directory_contents($path,$user); + $json=json_encode($ret); echo $json; ?> -- cgit v1.2.3