There is a feature on my site where admin is able to login and upload their weekly bulletin. The file is a pdf file. When I convert the original (Publisher) file to pdf from my PC and upload it there is no problem, however, when my client tries to convert and upload it the program rejects it as a uploadable file. I even had her send me her pdf file and I had the same error when I tried to upload it myself. Can you tell me why it would work with my computer but not hers?
// Check for file upload.
if (is_uploaded_file ($_FILES['userfile']['tmp_name']))
{
if (move_uploaded_file($_FILES['userfile']['tmp_name'], "../bulletin/weekly-bulletin.pdf"))
{ // Move the file over.
echo '<p><font color="red">Your file has been uploaded successfully!</font></p>';
}
else
{ // Couldn't move the file over.
echo '<p><font color="red">Your file could not be uploaded.</font></p>';
}
}
else
{
echo '<p><font color="red">Your file is not an uploadable file.</font></p>';
}
}