Download an attachment for a Gravity Forms entry
Overview
The "Download an attachment for a Gravity Forms entry" action allows you to download an attachment for an existing entry in a form. This action fetches the attachment from the server and provides it as an output.
Configuration
Entry ID
Enter the entry ID of the entry you want to download the attachment for.
Attachment URL
Enter the URL of the attachment you want to download.
Gravity Forms entries store the Attachment URL
inside the upload fields in the entry. You can select the upload field as dynamic content for this parameter and it will work.
Outputs
File Name
The name of the file that was downloaded.
Content Type
The content type of the file that was downloaded.
Size
The size of the file that was downloaded, in bytes.
Content
The content of the file that was downloaded. This is a base64 encoded string of the file content.
You will probably need to use the function base64ToBinary()
to convert the Content
output to a binary file. You can use functions by clicking on the ⚡ icon in the input field where you plan to use this output.