Open dynamiccookies opened 4 years ago
Google Drive has a specific link format for downloading a file and anything else will not work. However, it seems when a Google Drive file is shared, it is given a unique 33 character ID.
Users won't realize they need the specific download URL so, it would make more sense to parse the Google Drive URL and build the correct format.
The required format is
https://drive.google.com/uc?id=33_CHARACTER_ID&export=download
Whereas the shared link looks like this
https://drive.google.com/file/d/33_CHARACTER_ID/view?usp=sharingor this
https://drive.google.com/open?id=33_CHARACTER_ID
Some form of the regex to get the unique ID should be this [A-z_0-9]{33}
as I've seen upper and lower case letter, numbers, and an underscore character used. It's possible other characters could be used as well....need to research.
Google Drive has a 25mb size limit for its virus scanning. Anything over that interrupts the download process with a warning that cannot be suppressed.
Need to catch warning and display error to screen, and/or find work around.
The SMS backup app allows syncing to Google Drive or Dropbox, which can create a link to share from. Need to include ability to pull directly from the URL.