diff options
author | adam <adam@> | 2021-02-12 14:22:24 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 14:22:24 +0200 |
commit | 75640897d7ae44f10b9dde091d4b8dcba8e23776 (patch) | |
tree | a12ddea0e17f80ec9a1e4b12128cef0e0a12e257 /php | |
parent | bbd462f80f0b491caf15f0cc7fd8c7ed88e33ba6 (diff) | |
parent | 1de4d8dea14a9641206cd91613388ee5f228bae5 (diff) | |
download | fileup-75640897d7ae44f10b9dde091d4b8dcba8e23776.tar.gz |
Merge branch 'master' of https://github.com/alexvitkov/india
Diffstat (limited to 'php')
-rw-r--r-- | php/readdir.php | 3 | ||||
-rw-r--r-- | php/upload.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/php/readdir.php b/php/readdir.php index e69de29..b6a1916 100644 --- a/php/readdir.php +++ b/php/readdir.php @@ -0,0 +1,3 @@ +<?php +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 } ] '; +?> diff --git a/php/upload.php b/php/upload.php index 0aefefc..01ab6a6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -9,8 +9,6 @@ if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"])) exit(1); } -echo "adsf"; - $file = $_FILES["the_file"]; $filename= $_POST["filename"]; |