• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

How to get the JPG/PNG file from Google Drive?

Status
Not open for further replies.

PRPA

Member
Hi, I have set up a workflow that creates an image and saves it to Google Drive.

In the next step, I want to send the image to WooCommerce and I map the address of the image from the previous step.

It looks like this:


WooCommerce however refuses to accept it, saying it is not in the right format (woocommerce_product_image_upload_error, Invalid image: Sorry, you are not allowed to upload this file type).

Obviously, it wants a file ending with jpg/png... but how do you get it from the Google Drive?

(The workflow ID ends with 68464841258)

Thanks
 

Supreme

Well-known member
Staff member
As you are not getting the file URL in the proper extension, kindly upload the image first in the Imgur application to convert the proper file extension and then pass its generated file URL further.

1676457281472.png
 

PRPA

Member
Thanks for that!

However, where do you get the drive.google.com/uc?export=downloadXXXXX file please?

My steps are:

1. Google slides: Create presentation
2. Google slides: Get thumbnail
3. Google drive: Upload a file
4. Google drive: Share a file with anyone
5. Imgur: Upload image

... but the in step 5 I only get the

Res2 WebViewLink: https://drive.google.com/file/d/xxxxnamexxx/view?usp=drivesdk

and not the


as in the screenshot above.

As a result, Imgur gives me the error File type invalid.

(If you want to have a look at the workflow, it ends with 89494984)
 

Supreme

Well-known member
Staff member
However, where do you get the drive.google.com/uc?export=downloadXXXXX file please?
That was just a sample URL from Google Drive.

Can you please check from your WooCommerce account once whether you have permission to upload an image?
 

Supreme

Well-known member
Staff member
Hey @PRPA

Please check your workflow now, we have made some adjustments and it looks like the image is uploading.
 

PRPA

Member
I tried it and now it works, thanks.

For anyone else with theis problem:

Upload the image to you Google Drive, Share file with anyone and in the Imgur step, copy the following text into the Image URL ste: https://drive.google.com/uc?export=download&id=
...and append to it the "Res2 ID" from the previous Google Drive: Share file with anyone step
 
Status
Not open for further replies.
Top