Help

Download attachments via API keeping the original file name

Topic Labels: API
Solved
Jump to Solution
2210 2
cancel
Showing results for 
Search instead for 
Did you mean: 
MathiasFlinta
4 - Data Explorer
4 - Data Explorer

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!

1 Solution

Accepted Solutions
ScottWorld
18 - Pluto
18 - Pluto

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.

See Solution in Thread

2 Replies 2
ScottWorld
18 - Pluto
18 - Pluto

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.

MathiasFlinta
4 - Data Explorer
4 - Data Explorer

Thanks so much for the explanation Scott!