Re: Upload error

See all posts Reply

Re: Upload error new!
by Shirley, 11 years ago
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
Re: Upload error new!
by colin, 10 years, 12 months ago
You can do the check client-side (in Javascript), or else server-side, before even calling the class.Reply
Re: Upload error new!
by Shirley, 10 years, 12 months ago
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;

in my upload script as well?Reply
Re: Upload error new!
by colin, 10 years, 12 months ago
Yes. If your server permits it.Reply