Forums

If No File Upload Was Selected

Becca800 15 Feb, 2009
Hi there, back again. I was wondering, if someone choses not to upload their image in my form, is there a way I can have a substitute image uploaded automatically if that field is left blank? Like a hidden value which only gets uploaded if the field is blank?
GreyHead 15 Feb, 2009
Hi Becca800,

Yes - I think that someone posted a way of doing this - basically you need to check the $attachment array to see if there is an uploaded file and, if not, substitute your default entry.

Bob
This topic is locked and no more replies can be posted.