Skip to content
Uploading a file to...
 
Notifications
Clear all

Uploading a file to Dropbox - it works, but I'm unsure if I've done it correctly.

6 Posts
2 Users
0 Reactions
6 Views
Andrew_Davies
(@andrew_davies)
Posts: 8
Active Member
Topic starter
 

Hello everyone,

I'm quite new to callin.io and the world of automation, so please bear with me!

I've set up a scenario that downloads attachments from 4 attachment fields and uploads them to Dropbox. You can see a screenshot below. It's functioning correctly, but I'm not sure if I've configured it optimally. Could someone please advise or confirm?

  • I retrieve the file URL from Airtable using an HTTP Get file module.
  • I then pass this URL to the Dropbox module. However, I need to provide the filename separately from the Airtable module. If I don't do this, the file gets uploaded with a generic name like file.url.

Is this the correct approach? I had assumed that the filename would also be passed from Airtable to the HTTP Get file module, but it doesn't seem to be happening – unless I'm overlooking something?

Thanks in advance,
Andrew

 
Posted : 28/04/2022 11:42 am
alex.newpath
(@alex-newpath)
Posts: 53
Trusted Member
 

Hello! I'm guessing you're utilizing the HTTP module to retrieve the file from Airtable, as the native callin.io app lacks this functionality?

It would be beneficial to obtain the output bundles JSON from the HTTP module. It's possible that the filename will simply require assignment, or you might need to make an additional call to fetch the filename.

 
Posted : 28/04/2022 12:11 pm
Andrew_Davies
(@andrew_davies)
Posts: 8
Active Member
Topic starter
 

Thanks! Here is the output JSON from the HTTP module. The file I am downloading is not named file.pdf, so I must be doing something wrong!

I am utilizing the HTTP “Get a file” action.
I have 4 files to download from a single Airtable record. Ideally, I would have just the 4 HTTP Modules (one for each file), and then a single Dropbox upload module.

[
{
“statusCode”: 200,
“headers”: [
{
“name”: “content-type”,
“value”: “application/pdf”
},
{
“name”: “content-length”,
“value”: “84227”
},
{
“name”: “connection”,
“value”: “close”
},
{
“name”: “date”,
“value”: “Thu, 28 Apr 2022 12:06:43 GMT”
},
{
“name”: “x-amz-replication-status”,
“value”: “FAILED”
},
{
“name”: “last-modified”,
“value”: “Thu, 28 Apr 2022 12:05:27 GMT”
},
{
“name”: “etag”,
“value”: "“a57d0bbb98612195429aaa695ca0d166

 
Posted : 28/04/2022 12:31 pm
alex.newpath
(@alex-newpath)
Posts: 53
Trusted Member
 

File.pdf is merely the label provided by the HTTP call response. Is there an alternative method to retrieve the filename via another call? It's unfortunate this functionality isn't already integrated into the Airtable app. You might need to utilize the Airtable API further.

 
Posted : 28/04/2022 4:58 pm
Andrew_Davies
(@andrew_davies)
Posts: 8
Active Member
Topic starter
 

No problem at all - thanks again!

I added a Tools > Set Variable module to retrieve the filename from Airtable, and it's working fine now. It just feels like a rather lengthy process! Thanks again.

 
Posted : 28/04/2022 5:20 pm
alex.newpath
(@alex-newpath)
Posts: 53
Trusted Member
 

That's generally the approach you need to take when the HTTP module doesn't provide the necessary data, which is often the case if the API you're interacting with doesn't supply what you require. Kindly mark your solution.

 
Posted : 28/04/2022 5:22 pm
Share: