diff options
author | adam <adam@> | 2021-02-12 20:03:00 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 20:03:00 +0200 |
commit | 369de870ef6dbcd67ac9316bf714a6ded892eadc (patch) | |
tree | 87cd39ee249391f3d85b1eb6dd207dfe09c91f3e /php/database.php | |
parent | 3c00b31a63c37d13742bdf8d551bef42a84ffcd3 (diff) | |
download | fileup-369de870ef6dbcd67ac9316bf714a6ded892eadc.tar.gz |
guesses mime types now
Diffstat (limited to 'php/database.php')
-rw-r--r-- | php/database.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/php/database.php b/php/database.php index f5efec7..789ea86 100644 --- a/php/database.php +++ b/php/database.php @@ -347,11 +347,12 @@ require_once "node.php"; /*generate the node*/ $code=$this->get_random_node_name(""); if($filename==NULL)return "error"; - $prep=$this->pdo->prepare("insert into nodes(is_directory,relative_path,code) - values(false,:root,:code) + $prep=$this->pdo->prepare("insert into nodes(is_directory,relative_path,code,type) + values(false,:root,:code,:type) "); $prep->bindParam(':root',$code); $prep->bindParam(':code',$code); + $prep->bindParam(':type',$mimetype); if($prep->execute()==false) { |