Unable to upload image to Google Drive

Goal: To upload images onto Google Drive

How it should work: Receive image URL from webhook, create GDrive folder, upload image into said folder

The issue: Have been doing a couple of tests with various types of image URL. Even trying those directly from Google Search and it still would not upload an image correctly. The image would get corrupted and does not show in preview. Even when I download the file, it could not open on my mac.

These are my settings:

This is how it looks like on GDrive after running the scenario:


*even though it shows that the file size is 49 bytes, the image is somehow corrupted and unable to show.

Welcome to the Make community!

What does your “Data” look like?

Please provide the output bundles of the Webhook trigger module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes

Quick update for anyone who chances upon this post, A SOLUTION HAS BEEN FOUND! :tada:

Essentially, the idea is to download the image into the Make environment instead of uploading the file directly from a public domain. A loom video by Growwstacks explains it pretty well, you may find his answer here: Google Drive upload file from public URL - #2 by SebastianMertens

If you prefer a more step by step solution, this website explains the same thing: How to upload a file to Google Drive using Make.com (formerly Integromat) - Landbot Help

In conclusion, I’m missing the HTTP request module which will make this whole automation work :smiley:

2 Likes

Hey there @DevatW :wave:

Congratulations on figuring out such a clever solution with the help from @samliew!
Also thank you very much for sharing it here and keeping the community tidy and neat.

Keep up the amazing job! :muscle:

1 Like