Upload your file and get a shareable link which anyone can see Change permission from "Restricted" to "Anyone with the Link" in the share link options. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 11 months ago. Active 4 months ago. Viewed k times. Improve this question. Philip Voronov. Philip Voronov Philip Voronov 3, 4 4 gold badges 22 22 silver badges 32 32 bronze badges.
Add a comment. Active Oldest Votes. Update December 8th, According to Google Support using the googledrive. I just ran into this issue. The trick is to treat your Google Drive folder like a web host. Update April 1st, Google Drive has changed and there's a simple way to direct link to your drive.
Create a Public folder in Google Drive. Share this drive publicly. Here are the steps: Create a folder in Google Drive. Upload a simple HTML file. In the end, I needed a direct link to the actual file. But if you use the above "Web page hosting" method, you can get around that prompt. I hope that helps! Improve this answer. Great thanks for your answer!
Unfortunately, this folders created by my app so this tricks must be handled by using Google API if it allows this tricks at all , but I discovered really pretty cool things about Google Drive from your answer. Thanks a lot! That might get the URL for you programmatically? This doc shows how to create public folders programmatically. Perhaps that will help? Either way, I know you have an answer, I just wanted to add another solution for others who end up here like I did.
Did you check to make sure your entire folder is publicly available? Could be the amount of downloads was too high? Show 10 more comments. I don't know which version of grep introduced these options, but ancient or non-Ubuntu versions probably don't have it a Java solution would be more or less the same, just take a HTTPS library which can handle cookies, and some nice text-parsing library. Martin Pecka Martin Pecka 2, 1 1 gold badge 26 26 silver badges 35 35 bronze badges. Does this still work for you?
I've tested it right now with a 1 GB file. I used Sean's method to get the download link, and then the download did not show me the intermezzo page. So maybe this trick is no longer needed. Darkeden how did you get it to work?
My code with nodejs just gets the first URL, gets the "set-cookie" header, then finds the href from that A tag, makes a second GET request to that href, setting the "COokie" headder to the previous vallue of "set-cookie". Did you do it differently? FileUtils class, this can be easily achieved. Unfortunately, as far as I can tell, this is not possible. As a workaround in our Datasets project, we have built in some logic that directs the client to download the file manually for the files that are too big for Google to run the virus scan on.
Email required. This is really very good info. When i tried your method i am able to download a file,but i am getting junk data in that.
Get the share link, go to it in incognito, click the download link and start downloading it, then go to downloads, disconnect from the internet turn off WiFi or unplug cable , and click the link under the file name.
Now copy that link. That is the direct download link. Now paste the shareable link in a notepad or browser to modify and make it a native link! You have to modify this link, just replace open? After this modification, the link should look like this:. So you can use the link as a direct download link for the file! You can test the link we shared in the process. You can use OneDrive to get direct links for big files. To download large files from Google Drive, you must go to the web viewer for the shared file.
Have a different solution or want to say something about getting native links for Google Drive files? Please let us know in the comments section! So, ultimately what i want is a landing page on my website that will have links to my documents that stays up to date without me having to re-save to Google Drive.
Is that possible?
0コメント