FORMfields, the premiere web framework
Login
Support Home | Knowledge Base | Documentation | Forums | Contact Us
Info
FORMfields & FORMgen :: Email

UploadField - Email Attachment Without URL

(2186 views. Last Updated: 2007-08-15 2:28 PM)

Here is an example of how to automatically attach an UploadField, UploadImageField or UploadImageViewerField to an email and not display the URL to the uploaded file in the email.

Edit your form and replace:
$ffForm->addField(new UploadField("upload", "File to be uploaded", FORM_FIELD_REQUIRED, 2000000));
with:
$ffForm->addField(new UploadField("upload", "File to be uploaded", FORM_FIELD_REQUIRED, 2000000));
$ffForm->formFields["upload"]->setData(false);
Info
Support | Earn Money
Copyright © 2005-2019 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.