Feb 21, 2022 08:15 AM
Hey everybody,
big Airtable fan here, we are managing a lot of processes for a concert venue with this awesome tool.
Now we’re stuck with the following problem:
As far as i have read it’s not possible to move the attachments from one table to another with an automation, so instead we are working with URLs. I found a formular, that creates the attachment URLs, the syntax will be something like “https://dl.airtable.com/.attachments/xxxxxxxxxx”.
When i try to send these values to our main table (UPDATE RECORD), airtable changes them to links with the following syntax: “https://cdn.filestackcontent.com/xxxxxxxxxxxxxxxx” - and these just don’t work. We always get a “file cannot be found” error.
The same applies, if we use the “URL” value of an attachment field in Automations. In Preview it shows a (working) “dl.airtable.com” link, after running you’ll find a “cdn.filestackcontent” link (not working).
Does anybody know, why these links are converted, if it can be prevented or if there are any other ways, that we get URLs or (even better) Files in Attachment fields unconverted to our main table without having to do something manually? This is really frustrating and i wouldn’t be writing here if i hadn’t tried anything, that came to my mind.
One idea was to not have the links in “updates” be interpreted as links, but as plain text - but i couldn’t manage that either.
Thanks in advance for any ideas or hints!
Solved! Go to Solution.
Mar 11, 2022 03:52 AM
Hey everyone,
i got help from airtable support directly regarding this issue and would like to share some insights here.
It seems, that it takes a little time to process the upload via filestack to airtable. That’s why an automation, that fires when a record is created (incl. attachments) is not suitable here. The process of uploading is not yet finished when it fires and the result is broken links.
There are (at least) two possbile solutions for this
Here is what Airtable support send me:
"Ultimately what we’re trying to do is delay the automation long enough for filestack to fully process the image. Once the attachment has been fully uploaded to our system, its URL should contain “dl.airtable.com”. We suggest that users utilize an automation that triggers when records have an attachment formula that contains “dl.airtable.com”.
How to achieve this:
{Attachment Field Name}
I chose another solution, as i have multiple attachments which links should be send and i was not sure if they are done at the same time. So i delayed the automation by doing the following:
DATETIME_DIFF(NOW(),{Name of your Created time field}, ‘minutes’)
Let the automation fire, when the formular field contains a certain number. I chose “3” (minutes) and that seems to be sufficient, i am now getting correct “dl.airtable.com” links.
Thanks to Airtable Support and maybe someday there is a simpler solution to this :slightly_smiling_face:
Mar 11, 2022 03:52 AM
Hey everyone,
i got help from airtable support directly regarding this issue and would like to share some insights here.
It seems, that it takes a little time to process the upload via filestack to airtable. That’s why an automation, that fires when a record is created (incl. attachments) is not suitable here. The process of uploading is not yet finished when it fires and the result is broken links.
There are (at least) two possbile solutions for this
Here is what Airtable support send me:
"Ultimately what we’re trying to do is delay the automation long enough for filestack to fully process the image. Once the attachment has been fully uploaded to our system, its URL should contain “dl.airtable.com”. We suggest that users utilize an automation that triggers when records have an attachment formula that contains “dl.airtable.com”.
How to achieve this:
{Attachment Field Name}
I chose another solution, as i have multiple attachments which links should be send and i was not sure if they are done at the same time. So i delayed the automation by doing the following:
DATETIME_DIFF(NOW(),{Name of your Created time field}, ‘minutes’)
Let the automation fire, when the formular field contains a certain number. I chose “3” (minutes) and that seems to be sufficient, i am now getting correct “dl.airtable.com” links.
Thanks to Airtable Support and maybe someday there is a simpler solution to this :slightly_smiling_face:
Mar 11, 2022 03:55 AM
Two great workarounds! :grinning: :raised_hands: