I've got a file upload script, everything use to work fine, but for some reason it has stopped working on the server. Basically it use to be that someone could upload a word document and it would put it in an e-mail and send it to me.
I have checked file_upload is set to On.
I have written this test code:
PRINT($FILES["cv_upload"]["size"]);
if (is_readable($FILES["cv_upload"])) {
PRINT"not readable";
}
else {
PRINT"not readable";
}
The first part returns the file size, the second always returns not readable.
Any ideas what might have changed to make it stop working? Is there anything I could look for in phpinfo();? Is there anything I could drop in an htaccess file to get it up and running again?
Thanks