Google Drive Direct Links

Direct link functionality for Google Drive

< Feedback on Google Drive Direct Links

Review: Good - script works

§
Posted: 2015-09-14
Edited: 2015-09-14

Wrong file name

Hi.
Many thanks for your work.
But the files are downloaded with name = file_id. ie "0B0VjOS0bYS32ZDd3YkEzSmVacUk" instead of "filename.ext".
If you change the address of the script on https://drive.google.com (instead https://googledrive.com) the files are downloaded normally.

§
Posted: 2015-09-15
Edited: 2015-09-15

Hi, trup. Thanks for the feedback!

The problem with using the https://drive.google.com format is that it carries a possibility of the request being disrupted by a confirmation redirect for files that are too large to be virus scanned. A workaround is to use the format "https://googledrive.com/host/folder-id/filename.ext", but this requires the entire folder in which the file is contained to be public rather than simply the file itself, so I basically ended up going with the most reliable of two options.

§
Posted: 2015-09-15
Edited: 2015-09-15

That is, such behavior

instead

is this normal?

This file save firefox dialog.
It is one and the same file. Size >100mb.

§
Posted: 2015-09-16

Yea, it seems exe files have their extension stripped. Simply appending it to the end of the file name should allow it to run as normal, but I can see how that'd be a pain, so I've modified the code to preserve file names for files hosted from a public folder using the format mentioned above. Otherwise, the original file-id format is used. Give it an update and test it out. Just make sure the folder from which your exe is hosted is public.

§
Posted: 2015-09-16

When I click open direct, nothing happens. Folder is shared.

§
Posted: 2015-09-16

Ah, seems to fail with list view. Working on a fix.

§
Posted: 2015-09-16

Should be good now. Give it a go.

§
Posted: 2015-09-16

Thank you, it works!

Post reply

Sign in to post a reply.