Posted on: 02/09/03 07:44pm
By: amckay
$path = "/home/bodensatz/vdirs/dl/sb";
$mode = 3;
$ul = new upload();
$ul->setAllowedMimeTypes(array('text/xml','text/txt'));
if (!$ul->setPath($path)) {
print 'File Upload Errors:<BR>' . $ul->printErrors();
break;
}
if (!isset($upload_filename)) {
$display .= "No filename defined in form<br>";
break;
}
if ($upload_filename == ""
{
$display .= "No filename entered<br>";
break;
}
$ul->setFileNames($upload_filename);
$ul->setPerms('0644');
if (!($ul->uploadFiles()))
{
$display .= "Error during upload<br>";
break;
}
if ($ul->areErrors()) {
$display .= "ERRORS<BR>";
$ul->printErrors();
break;
}
$success = TRUE;
Well, it reports success but the file is not in my designated upload path, and so when I then try to open it the program bombs. I verified that I can upload user photos in GL so the GL upload class is working. I also changed the upload path to the same path where the usersettings.php uploads the user photos, and no luck.
I'm at my wits end here. What am I doing wrong?
thanks,
-Alan
Posted on: 02/10/03 10:32am
By: Tony
Posted on: 02/10/03 10:20pm
By: amckay