Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Last active November 8, 2017 20:42
Show Gist options
  • Save rruhlen/9a1f3f625a12c8553d78200f59f07a79 to your computer and use it in GitHub Desktop.
Save rruhlen/9a1f3f625a12c8553d78200f59f07a79 to your computer and use it in GitHub Desktop.
Attach multiple files to a Desk email form. Input fields must be generated on the fly and can't be hard-coded on the page.
<!-- add to desk-external-variables div -->
<div id="max_number_attachments">{{desk.system.max_attachments}}</div>
<div id="system-snippets-add_attachment">{{system.snippets.add_attachment}}</div>
<div class="desk_file_upload2">
<div style="clear:left;">
<input class="up" name="case_attachment[attachment]" size="84" type="file">
</div>
<div style="clear:left;">
<input class="up" name="case_attachment2[attachment]" size="84" type="file">
</div>
<div style="clear:left;">
<input class="up" name="case_attachment3[attachment]" size="84" type="file">
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment