Setting a default image

See all posts Reply

Setting a default image new!
by Tim, 15 years, 3 months ago
Hi, I was wondering if there was a way to check that a file had been uploaded, and if not set a default image to be used / copied and renamed?Reply
Re: Setting a default image new!
by colin, 15 years, 3 months ago
I am not too sure what you mean. But it seems to me that this should be done outside the class. You do your upload, and if it fails, you use your default image.

Note that it if you want to process your default image, you can process it through the class (look in the doc for processing local images). So if the uploaded image fails, you can do a second process on your default image.Reply