Skip to main content

Downloading Images from Airtable and Attaching them to Cloudinary

  • May 30, 2023
  • 0 replies
  • 23 views

Forum|alt.badge.img

I'm encountering an issue while trying to download and attach images from Airtable to my Rails application. I'm using a rake task to transfer data from Airtable to my PostgreSQL DB and everything works fine except for the image attachment part which happens through Cloudinary. I need assistance in resolving this problem.

The main problem is definitely downloading the attachment from the stored URL in my attachment field to then have a valid image file (.jpeg format). Has anyone experience with this?

The issue I'm facing is that when I run the rake task, it throws an "Invalid image file" error. I have checked the URL and confirmed that the image is accessible. I suspect that there might be an issue with how I'm downloading and validating the image file.

I would appreciate any insights or suggestions on how to resolve this problem. Thank you in advance for your help.

Best regards,

Lis

0 replies

Be the first to reply!