Please enable JavaScript to view this site.

iService Forms User Guide

Navigation: Form Commands > $Input

Attaching Files

Scroll Prev Top Next More

Your form submissions can be modified to accept file attachments by changing the POST command and adding HTML within the form body and using the type="file" input parameter.

 

The Post command for the form should be modified to specify that the form may contain a file attachment. Replace the default post with the following.

 

<form method="POST" enctype="multipart/form-data">

 

Since every element within an HTML document must have a unique name, you need to add a unique value to the name of each file attachment if there is more than one in the form. For example, you might use naming such as file1, file2, file3 where the prefix is the word "file".

 

Example:

Insert the following into your form body wherever you would like the user to select a file. You may include as many file attachment inputs as desired. This example includes two.

Attachment 1: <input type="file" name="EmailAttach1" /><br />

Attachment 2: <input type="file" name="EmailAttach2" /><br />

 

NOTE: The iService $input command is not used to accept files. Standard HTML input tags are used.