class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
How do you stop it from throwing an error if no file is uploaded? I have it on a form that has other fields and if I don't choose to upload a file I get and error. I do want it to create a directory even if I don't upload a file though. How can I do that?Reply
Thank you. I have one other problem. When it creates a directory it CHMODE to 0777 which causes the files not to be accessible I need it to be 0755. I changed it to 0755 in the script but it is still doing 0777. Do I have to add this $handle->dir_chmod = 0755;
I do want it to create a directory even if I don't upload a file though. How can I do that?
$handle->dir_chmod = 0755;
in my upload script as well?