gaqwashington.blogg.se

Google drive download without zipping
Google drive download without zipping




google drive download without zipping

  • The blob data are compressed by ZIP, and then they are downloaded.
  • The converted-base64 data are transfered to the site and are converted to blob using Javascript in HTML.
  • When users clicked the files from the list and pushed DOWNLOAD button, the files are converted to base64 using Google Apps Script.
  • Users access to the site which was used by Web Apps using own browser.
  • All files in a folder that owner of Google Drive decided display as a list using Web Apps.
  • getScriptTimeZone(), "yyyyMMdd_HHmmss") + '.zip') Following image is the project pasted the sample script. You can use the sample for the script of both container-bound script and standalone script.
  • -> At Who has access to the app, select “Anyone, even anonymous”Īnd then, please copy and paste following respective HTML and GAS to your script editor.
  • -> At Execute the app as, select “your account”.
  • google drive download without zipping

    The how to deploy Web Apps is as follows. In order to use this sample script, it is necessary to deploy Web Apps. For these problems, I solved this using base64. I have already known that files can download under no authorization using base64 and byte array. In the case of use the Drive API, users have to authorize at Google using OAuth2 process.In the case of use the Download Link for each file, only owner of Google Drive can download the files, even if the permission of files are changed as the ANYONE.When files are downloaded from Google Drive, it is necessary to use Download Link and Drive API. In order to download files from Google Drive under no authorization, there are some problems. From the top document, You can see that an user who is not owner of Google Drive is downloading files. This is a demonstration for downloading files from Google Drive under no authorization using browser. Even if the other users are not Google users, they can download the files. By using this sample, you can make other users download files from your Google Drive.

    google drive download without zipping

    This is a sample script for downloading files from Google Drive under no authorization using browser.






    Google drive download without zipping