Hello everyone,
I’m working on a scenario where I generate a .docx document from a template stored on my Google Drive. This document is then sent by email, and so far, everything works perfectly.
However, I also need to make this document downloadable via a link. Currently, the generated link points to Google Docs, which requires the user to sign in to their Google account to download the file—this isn’t ideal.
Does anyone have a solution for creating a direct download link that bypasses the Google sign-in requirement?
Thanks in advance for your expert advice!
You have to set the sharing to Reader and Anyone.
Then, use the “Web Content Link”, which is a direct link to Download the file.
Do NOT use the “Share Link”!
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
Thank you @samliew ! But it doesn’t work. The Web Content link gives me an HTTP ERROR 500.
How are you mapping this variable? I don’t see any variables from Google Drive in your HTTP screenshot. You are mapping module [1] and [3] but not module [22].
I had disconnected it during my tests to first get a working link to send. (It sends to my Bubble application). I reconnected it, but it’s the same— the link opens a blank page in the browser with a 500 error (drive.usercontent.google.com).
I used share link on my end and it works. Maybe the permission settings of the document are not right. You should make it “anyone can view”
After many different attempts without success, I found a solution that works! I grab one of the links from the Google Doc module (the module that creates my document from a template). There are export links (pdf, text, odt, etc.). There’s no .docx, but you can simply change =odt to =docx in a Set Variable module, and it works! You get a direct download link.
Thank you for your help, and I hope this solution helps other Makers who are struggling like I was!
3 Likes