For the complete documentation index, see llms.txt. This page is also available as Markdown.

List form data attachments API

Availability

Since Orbeon Forms 4.7.

Internal uses

None.

Purpose

The purpose of the attachments API is to return information about form data attachments.

Interface

  • URL: /fr/service/$app/$form/attachments?document=$document

  • Method: GET

Where:

  • $app is the form definition's application name

  • $form is the form definition's form name

  • $document is the form data's document id

Request parameters:

  • document: the id of the document (form data) to retrieve

Request body:

  • none

Response body:

  • Content-Type: application/xml

  • each child element

    • has the following attributes

      • name attribute: the associated control name

      • filename, mediatype, size: attachment metadata

      • fr:relevant="false": if the corresponding control was non-relevant when data was saved, either directly because inside a non-relevant grid or section [SINCE Orbeon Forms 2024.1.1]

    • contains, as text data, the path to the attachment

Example response body:

Permissions

The caller must either call the service internally or have proper credentials to access the data (username, group, roles).

See also

Last updated