From 69c729e663d3b50188629e82c6e41662aae64e4d Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 17:09:33 +0200 Subject: asdf --- php/upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'php/upload.php') 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") { -- cgit v1.2.3