File Field API
This document contains the File field API format, supported attributes, and attachment type rules.
Last updated
Was this helpful?
This document contains the File field API format, supported attributes, and attachment type rules.
Use this page to add a file field to template XML. Assign the field to a role with roleId, then upload the actual file later and pass the returned attachment ID in the envelope request.
<field
type="attachment"
name="supporting_file"
roleId="fd8cb669-db1d-41e1-8f6c-2ad3f8fa981a"
placeholder="Upload file"
optional="false"
attachmentType="all"
/>type — field type. Use attachment.
name — field name. Use 1 to 128 characters. Do not use &, ", <, or >. Keep the value unique within one document.
roleId — role identifier for the recipient who uploads the file.
attachmentType — allowed upload type. Use one of these values: all, file, document, image, archive.
placeholder — placeholder text shown in the template and envelope. Use 0 to 1024 characters. If you omit it, the envelope shows the field name.
optional — set to true if the recipient can leave the field empty. If you omit it, the default value is false.
all — .pdf, .doc, .docx, .xls, .xlsx, .xlsm, .xlsb, .xml, .dbf, .txt, .rtf, .csv, .xps, .eml, .msg, .emlx, .rpmsg, .crt, .pem, .der, .cer, .ppt, .pptx, .png, .jpg, .jpeg, .tiff, .tif, .zip, .7z, .rar, .asice
file — .pdf, .doc, .docx, .xls, .xlsx, .xlsm, .xlsb, .xml, .dbf, .txt, .rtf, .csv, .xps, .eml, .msg, .emlx, .rpmsg, .crt, .pem, .der, .cer, .ppt, .pptx
document — .pdf
image — .png, .jpg, .jpeg, .tiff, .tif
archive — .zip, .7z, .rar, .asice
Add the file field to the template.
Upload the file with Upload Attachment/External Documents Method.
Pass the uploaded attachment ID in the envelope request.
Last updated
Was this helpful?
Was this helpful?
