Online Chat
 Call Us: 
Browse Submit a Ticket
Advanced Search
Rss Categories

How can I allow form to upload and send fiels?

Author: Antony Corsten Reference Number: AA-00243 Views: 8417 Last Updated: 06/25/2009 06:24 AM 0 Rating/ Voters

To allow file uploads you need to do:

1) On your form add file field, for example:

<input type="file" name="user-file">

Person who submit form will use this field to attach file

2) In your email template in headers section add:
Attachment: {#user-file#}

or you can pack it in zip if you need:
Attachment: {#user-file|file2zip#}

After this your form will be able to upload and send file attachments.
For example you can see 'file-upload-form-with-different-file-checks' from sample forms.