aboutsummaryrefslogtreecommitdiffstats
path: root/php/upload.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 17:09:33 +0200
committeradam <adam@>2021-02-12 17:09:33 +0200
commit69c729e663d3b50188629e82c6e41662aae64e4d (patch)
treeb27858dc11c324fb3fa227c52741d864bb9d6b82 /php/upload.php
parentfe005fb926ad568333655a0794338516e4af5b9d (diff)
downloadfileup-69c729e663d3b50188629e82c6e41662aae64e4d.tar.gz
asdf
Diffstat (limited to 'php/upload.php')
-rw-r--r--php/upload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/php/upload.php b/php/upload.php
index 55ff4a4..b36a0f1 100644
--- a/php/upload.php
+++ b/php/upload.php
@@ -2,6 +2,7 @@
require_once "database.php";
require_once "configuration.php";
+session_start();
echo 1;
if (!isset( $_POST["filename"]) || !isset($_FILES["the_file"]))
{
@@ -13,10 +14,11 @@ echo 2;
$file=$_FILES["the_file"];
$filename=$_POST["filename"];
+$homedir=$_SESSION['user_object'];
echo 3;
-$codename=$database->create_file_node($filename);
+$codename=$database->create_file_node($filename,"",$_SESSION['user_object']->home_directory);
echo $codename;
if($codename=="error")
{