// create a new directory based on the current time.
// this is needed to attach multiple files with the same name
$dir = $config['attach_dir']."/".$this->created;
mkdir($dir,0777);
// copy the file from the temporary server location into the pmtool
// attachment directory
$file = $dir.'/'.$this->name;
if (!copy($userfile,$file)) {
$toolInst->errorStatus("unable to copy file from temporary server location into pmtool dir.");
return false;
}
it always come back false. is there a way to solve this
Please and Thank You