Web: Download a File
Use this action to download a file from a public URL and save the file to a field.
How to configure this action
This action uses a URL to download any public file, even files with no extension. Typically, to help find the right URL, look for URLs with the file extension at the end of the URL, for example:
https://www.irs.gov/pub/irs-pdf/p1179.pdf
You can find these URLs in most modern browsers by right-clicking a download link and selecting “Copy Link Address”. This copied link will look like the example above and be the URL that points directly at the file.
You can use the same technique to get the URL from a PagerDuty Workflow Automation file field – right click on a file field output and “Copy Link Address” to copy the download URL.
Fields for this action
-
URL
- Enter the URL that points directly to the file. The file must be publicly available.
-
Output Field Prefix
- To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.
- The step’s name is used as the prefix by default.
What will this output?
This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:{{output-field-prefix--output-field}}
. Learn more
Output fields for this action
-
File
- The field where the downloaded file is stored. This is a file download URL as well.
-
File name
- The name of the file including the extension.
-
File size in bytes
- The integer size of the file in bytes.
-
File extension
- Just the file extension for the file, such as .pdf or .pptx
-
File type
- The file type, like image, spreadsheet, pdf, document, or others.
Thanks for your feedback
We update the Help Center daily, so expect changes soon.
Link Copied
Paste this URL anywhere to link straight to the section.