diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
commit | ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d (patch) | |
tree | f8707e1aeff617916fc8684b418e7e28d56b08a9 /php/readdir.php | |
parent | a218bdd5fc29f4dab9f68c4eb9173db0627046c1 (diff) | |
download | fileup-ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d.tar.gz |
Upload.php now can upload in direcotires other than root
Diffstat (limited to 'php/readdir.php')
-rw-r--r-- | php/readdir.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; ?> |