user3618856
user3618856

Reputation: 21

Uploading and serving media files from google drive on django

I'm working on an app in django that allows users to upload documents to google drive and share them with friends. The problem is I want to restrict the shared documents to view only (no download option). How can I go about doing this?

Upvotes: 2

Views: 1030

Answers (1)

Mo'in Creemers
Mo'in Creemers

Reputation: 1149

You can insert/upload files using the Drive API and set the "restricted" label to prevent downloading of the file. You would then set the appropriate permissions to this file to allow anyone or a specified set of users to access the file.

Download restrictions may or may not apply for files that are converted to one of the Google Apps formats because the option to prevent downloading seems unavailable for these files through the Google Drive UI. You would have to test this yourself.

Upvotes: 2

Related Questions