diff options
author | adam <adam@> | 2021-02-12 13:32:27 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 13:32:27 +0200 |
commit | 48639929374cb0d0a5e2ac52b7c021f7a48229f5 (patch) | |
tree | 3e091f7e8336c42936cde9cefe401f414955d82f | |
parent | 8c243f56c3a8a31c9814f11ded96e7ceabfd8d01 (diff) | |
parent | ad0826bd624a965fc93fb40b7266854e2ce52e8e (diff) | |
download | fileup-48639929374cb0d0a5e2ac52b7c021f7a48229f5.tar.gz |
Merge branch 'master' of https://github.com/alexvitkov/india
-rw-r--r-- | loggedin.php | 2 | ||||
-rw-r--r-- | php/upload.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/loggedin.php b/loggedin.php index 74c0b10..b525ed6 100644 --- a/loggedin.php +++ b/loggedin.php @@ -12,7 +12,7 @@ </div> -<form id="upload_form" style="display:none;" action="php/upload.php" method="post"> +<form id="upload_form" style="display:none;" action="php/upload.php" method="post" enctype="multipart/form-data"> <input id="filename" name="filename"> <input type="file" name="the_file" id="the_file"> </form> diff --git a/php/upload.php b/php/upload.php index 01ab6a6..0aefefc 100644 --- a/php/upload.php +++ b/php/upload.php @@ -9,6 +9,8 @@ if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"])) exit(1); } +echo "adsf"; + $file = $_FILES["the_file"]; $filename= $_POST["filename"]; |