Google Drive not Uploading Files correctly - File Corruption

Hi,
I have the same issue as was mentioned here:

I have a Webhook that fetches a file from my Wordpress, then puts it in a folder. It also creates a folder. The folder creation works and a file is added to my folder, but the PDF itself only has the actual URL from my original file, not the file itself in it.

Blueprint below:
blueprint.json (80.2 KB)

I tried to redo this with a TXT and A JPG file, but the same file corruption occurs.

I found the problem, I needed a HTTP step to download the file from the URL before uploading it. Unfortunately adds an operation, but I guess I don’t have much of a choice?

Hi @AndreasMerlin and welcome to the Make Community!

From what I can tell, you’re taking the URL of the document that you received and you are creating a new PDF document that only contains the URL you received from the webhook:

image

The Data field should be the actual (binary) pdf info. Which means you may need an HTTP call before the Google Drive upload call that fetches the file in the URL and then puts the binary data in the Data field.

L

2 Likes

Thanks, that is exactly the issue. :grinning:

1 Like