From af0c31ec0ebbfabd3f6140b816752ccf96313225 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 19:54:52 +0200 Subject: mimetype draft --- 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 b22c3a8..ee5d1ae 100644 --- a/php/upload.php +++ b/php/upload.php @@ -1,6 +1,7 @@ home_directory; +$mimetype=file_type($file['tmp_name']); -$codename=$database->create_file_node($filename,"",$homedir,$user); +$codename=$database->create_file_node($filename,"",$homedir,$mimetype,$user); if($codename=="error") { error_log("could not create file_node in upload.php"); -- cgit v1.2.3