FILEUP



LOG | FILES | OVERVIEW


F diff --git a/php/database.php b/php/database.php --- a/php/database.php +++ b/php/database.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)
{