Download Image and Upload File through Latenode

Hi Team,

I’m struggling to set up the following flow:

  • I want to take a link to an image
  • and save the image to Google Drive

The broader goal is to:

  • provide a list of image links (e.g. from 1,000 lines in a Google sheet)
  • handle the image in Latenode
  • upload it in Google Drive
  • and save the Google Drive link per image in a new column in the original Google Sheet

Right now, I’m failing to do this with the Google Drive node, and I am looking for the simplest solution possible.

I have tried various alternatives, but the Upload File action cannot read the file the JavaScript node is providing.

Thanks a lot!

Google Drive natively supports uploading files via URLs, so there shouldn’t be any issues with this. You just need to iterate over the values from the table and insert the URLs into the Google Drive node.



Of course, you could also implement something like this:

Files could be temporarily uploaded to Latenode using an HTTP request, and then you could pass the content to the Google Drive node in the form of file data. However, this approach would likely take more time.

Additionally, it’s a good idea to update the statuses of your rows, such as marking them as “processed” or “not processed.” This way, if a failure occurs, the scenario won’t restart processing from the beginning.

I wrote about this in more detail in this thread: Batch Data Processing in Google Sheets — AI Processing, Enrichment, and More, so please take a look.

Let me know if you need any help—I’ll be happy to assist!

Thank you! This was really helpful!

I fell into a loop hole and couldn’t debug properly!

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.