aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loggedin.php2
-rw-r--r--php/upload.php2
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"];