<attachment>
Displays/downloads an attached file; rendered as <a> or <img>, <video>, or <audio>. The name attribute holds the field. The table attribute is used for <attachment> tags defined within a <relatedlist> tag.
In DesignStudio, you can use the File component to allow users to attach a file to a board. In Unified Command Platform you can use the <multiplefileinput> tag to allow users to upload multiple attachments to the same field in a board.
| Attribute | Allowed Values | Requirements | Description |
|---|---|---|---|
| filetype | (image|video|audio) | Optional |
Displays the image, video, and audio attachments. Video and audio values allow you to use video and audio attributes. |
| name | %fieldname | Required | Name of the field. |
| table | %table | Optional | Name of the table. |
| * | * | Optional | Passes any HTML attribute, except src and href, through to the rendered tag. |
Example
Copy Code
<attachment name="fieldname">Download</attachment>
<input type="file" name="fieldname" size="30"></input>
See the input tag description for more information about setting the input tag's type attribute to "file."