When using a custom field for file uploads in a survey (potentially also affects forms), only the first uploaded file is stored and accessible. The expected behavior is that all uploaded files should be retrievable via the custom field.
Steps to Reproduce:
1. Create a survey with a file upload custom field that allows multiple file uploads.
2. Save the survey.
3. Create a workflow that sends an email containing {{contact.[field id]}} to retrieve all uploaded file links.
4. Activate the workflow.
5. Complete the survey, uploading multiple files in the file upload field.
Expected Result:
The email should include links to all uploaded files.
Actual Result:
The email only contains the first uploaded file link, ignoring the rest.
Impact:
This breaks workflows reliant on retrieving multiple files and limits the usefulness of file-upload fields.
Please investigate and fix. Let me know if you need additional details.