Hi Scream,
If I trying to attach any file to my post, all looks Ok - no any errors appears.
But post have't any attachments, mysql base (file) field is empty.
Can you help me resolve the problem?
here part of addpost.php, may be it helps you (I try to attach 1.jpg)
=====8<=========
// Doesn't support it, so we write our own function
else {
$filename = $userfile;
////////********* At runtime $filename="/var/tmp/phpH31568"
if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
$tmp_file = dirname(tempnam('', ''));
/////////////********At runtime $tmp_file="";
}
$tmp_file .= '/' . basename($filename);
$validfile = (ereg_replace('/+', '/', $tmp_file) == $filename);
if ($validfile) {
$goodfile = "yes";
}
}
===================================================