Nov 02, 2021 03:45 AM
Hi,
I would like to download attachments via API or download link keeping the original file name. I managed so far to download all attachments using the URL airtable generates for each attachment using a HTTP get request to the link. The issue is that when downloading through the URL it gives new generic names for all files such as:
file (1)
file (2)
…
file(103)
Etc.
Do any of you know a solution to this? I am currently setting this up in Integromat.
Thanks!
Solved! Go to Solution.
Nov 02, 2021 04:36 AM
The URL contains the name of the attachment at the end with “illegal characters” removed, and when you manually download the attachment from the URL, it will preserve this name as your filename.
But the Airtable API always returns the original filename for an attachment (with no substitutions at all) as the value for the “filename” property.
If you’re getting generic filenames in Integromat, then you haven’t specified the filename that you want to use for the specific module that you’ve chosen. There are no “download” modules for Airtable, so you must be using another web service to grab the file.
Nov 02, 2021 04:36 AM
The URL contains the name of the attachment at the end with “illegal characters” removed, and when you manually download the attachment from the URL, it will preserve this name as your filename.
But the Airtable API always returns the original filename for an attachment (with no substitutions at all) as the value for the “filename” property.
If you’re getting generic filenames in Integromat, then you haven’t specified the filename that you want to use for the specific module that you’ve chosen. There are no “download” modules for Airtable, so you must be using another web service to grab the file.
Nov 02, 2021 04:59 AM
Thanks so much for the explanation Scott!