Ah, this makes sense now. The information on that page is very useful for my situation.
Since I’m having trouble using the zapier/airtable “file” field, my workaround will probably be to host the files on my CDN and reference it in a url field in airtable instead.
Thank you!
Hi @ChooseReach,
I’m glad to hear that robschmidt was able to point you to the right direction!
If you have any other questions, please don’t hesitate to ask in the Community. We’re always happy to help!
Hi @ken.a , thanks for chiming in here. I setup the airtable zap to use the file field and get this error:
While requesting "dev_file" from Airtable (2.3.2) we ran into an error: You passed {raw: true} in request() - the response.content property is not available! Try response.body.pipe() for streaming, response.buffer() for a buffer, or response.text() for str
Anyone ever have any luck using the airtable attachment file field in combination with the delay function?
Hi @ChooseReach,
I did some research, and it looks like this is happening because file links from Airtable started expiring after "a couple hours." This change took effect on the 8th of November 2022, and you can read more about it here:
This means that, because there's a Delay that can be longer than 2 hours, that file is no longer available when we try to send it to the action of the Zap
The trick here would be to use a Google Drive (or other file storage step) before the Delay to upload that file. You can then use the output of this new step to retrieve the file, since it will last longer than the 2 hours that Airtable provides currently.
Here's a step-by-step guide on how you can modify your Zap:
In the Zap that triggers when a new record is added to Airtable, add a new action step after the trigger.
Select Google Drive (or another file storage service) as the app for this action.
Choose "Upload File" as the action event.
Connect and set up your Google Drive account.
In the "File" field, use the file data coming from the Airtable trigger.
Continue setting up the rest of the action as necessary and then finish by clicking "Continue".
Now, instead of using the temporary Airtable URL in following steps, use the URL of the file on Google Drive. This URL will not expire after 2 hours.