Google Drive Embed - html

My friend and I were asked to make a school Elections Website. We planned on using Google Drive and since our school has G Suite we can make it so that only members with school emails can view the file. This is where the problem starts, iPads cannot open the private Google Drive video embed up even if they are using Chrome and are logged in on their school accounts. Is there any solution to this problem apart from making the videos unlisted?

When you host a video or any other file on you Drive, you can configure the access permissions.
For this, you hgave to rightclick on the file and select Share.
You can either manually add people with whom you want to share the file (can be also a Google group which contains all members with whom you want to share):
Or, you can activate Link access and set it to "Anyone in your domain can view"
The latter is the most appropiate if the file is located on a Drive of your school domain - in this case by enabling this option you provide access to your whole school (domain).
Since your question is tagged with the tag google-drive-api:
To perform the sharing request with the API - use the method Permissions: create

Related

Google Picker API for sharing documents

I have implemented the Picker API for my Web App and there is only one inconvenient.
The App permit a user to open a project and share all kind of documents. One of the methods available to share documents with others is throughout Google Drive, so the User select the documents within its account and the App show the links to download the content shared.
All works fine but the issue is related with permissions. If other users click on any link, it indicates that he needs permission from the owner, so he must wait until access is granted.
Is there any way to avoid this? I mean, the owner share the files knowing it can be downloaded by any other user from the website.
Thanks in advance.

Generate a URL for Google Drive publicly shared files and access them

I have a collection of PDF files on a Google Drive. I have shared them and I want to be able to link to them from a list on a web site. What I'd like to be able to do is work out the file name of the PDF using information in the list. As a simple example, if my list contains items 1, 2 and 3 I'd like to be able to upload PDF files 1.PDF 2.PDF and 3.PDF to Google Drive then have the web site just link to those when a link is clicked and show the PDF files in the browser.
So, I guess I could do this just by uploading the PDF to Google Drive and manually adding a link to PDF on the web site. However, what I want to do is generate the link programmatically so that when I have, say, 50 PDF files I don't have to keep getting the link from Google Drive and adding it to the web site. The site should just work out that item 50, say, in the list will link to 50.PDF, for example.
I've tried to get the file id using the API but that requires the authorization token to be generated and manual intervention to take place, so that won't work. At least, not at the point where the file is viewed because the viewer is anonymous.
So my questions are:
Is it possible to work out what a file name will be on the drive using just something like an item number in a list?
I guess that there are maybe some other options - for example, when I add the items to the list on the web site programmatically, I could go and locate the google drive file manually using a web application and link it using the file id at that point. I could store the ID in a database - however, would any anonymous user then be able to just click on the file link on the web site and view the file?
Finally, can anyone think of another way to do this?
Any help would be appreciated! :)
Is it possible for you to use a service account? You can authorize the app with an account dedicated to your app and user doesn't need to authorize and authenticate. The files you will be uploading will be managed under the service account's Drive.
You can learn more about service accounts on https://developers.google.com/accounts/docs/OAuth2ServiceAccount
If you have implementation specific questions, please ask.

If I use the Google Drive SDK in my app is it possible to hide the saved data from the user?

I want to use the Google drive sdk to save data from my app in the user's own Google drive account. This will mean that the developers of the app (i.e. me) won't have access to sensitive data that the user is storing.
I have found some docs about how to do this (the app will be a Google app engine app) but I was wondering if I can lock this data or hide it completely so that a user can't go in and edit the data and possibly cause problems.
I know that Android apps that use Google drive do not leave any visible files that I can see when I go to my drive account.
Thanks
When creating the file, set the hidden label to True. This will hide the file from most user views. Note that it doesn't completely prevent the user from finding and modifying the file if they own it.
If you need the file to be uneditable by the owner, your app will need to own it and only grant the user view access.
In Google Play Services 4.3, they added an "Application Folder." This is designed to allow applications to store data in a user's drive without allowing them to modify this data. It's available for android and web, don't see it listed for iOS.

Allowing a third party website to save to my drive (and with no sharing permission)

We're working on an app to sell our music and was wondering if Google Drive can be used as an online storage solution.
The user would complete the transaction on our site, and then authorize us to save the file (or multiple files) to their Google Drive.
The appeal to us is to solve downloading problems via the browser. I believe the Google Drive api returns a successful response when the delivery is complete. If incomplete, we would then either resend or update.
One other requirement is whether we can set permissions to not allow sharing after save (and for that setting to be permanent).
You can do everything you want. The last part about not allowing users to reshare, you can do this if you still own the file, but cannot do it if you have made the user own the file. I am not sure you could ever achieve that - a user can always download a file and share it themselves, whether you are using Drive or your own custom system.

One admin - 100 users - simplicity, solution? (iOs app will read this files)

I have to develop an ios application. On the first side, one admin will manage some files (pdf, movie) and on the other side, near 100 person will communicate with this files in a "read only" mode.
Is there a DropBox solution?
I thought that i will create only one account, and work with the only folder app which DropBox recommend, but DropBox may not accept this system?
I thought that each person will have to create an account and the app will read a shared folder by the admin, but we don't really need to create 100 account... and this will use the "full dropBox mode app" which DropBox not recommend.
Sorry for my english.
I Prefer use DropBox or google drive than a server because of theirs ergonomics and simplicity, but maybe there is no solution...
Is google drive an alternative solution?
PS : the app will not be available on the appStore
I can't talk for Dropbox but as far as Google Drive is concerned:
What you could do if you don't want the 100 users to have a Google account is to share the file publicly and then the 100 users can simply read the file. Since it is shared publicly they will not have to authorize.
However if you want to keep control on the authorization of the file and not share it publicly the 100 users will have to have google accounts. Then you could simply share the file to these users and they will have access to it. You can set the sharing to be read-only if you want.