Downloading Images from Airtable and Attaching them to Cloudinary

Topic Labels: Importing & Exporting
705 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

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,


0 Replies 0