Formbuilder item types file upload render condition

Description

When trying to export a formbuilder form submission to excel, the generated output for an upload file field "File Upload" contains a broken URL when there has been no actual file uploaded for this field.

Example URL: https://www.theclientsdomaingoeshere.com/file/L2Zvcm1CdWlsZGVyU3RvcmFnZVByb3ZpZGVye30=/

After a quick review we found that there are two methods for rendering output, especially renderResponseForExport in the preside/system/handlers/formbuilder/item-types/FileUpload.cfc component.

When the value is empty, the field consists of the text "{}", meaning no file was uploaded.

The non-export method renderResponse contains conditional logic to check for this so the "Export" version needs updating to do the same.

The output should be the text "No file uploaded".

Environment

None

Assignee

Unassigned

Reporter

Chun Weng Wong

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Low
Configure