I want to upload an image (from UIImage) to my own Google Drive public folder, from an iOS app, when a user chooses an image from his Photos Library.
Is it possible to upload a file to a Google Drive public folder without showing the user a consent screen?
If not, can it be done in Dropbox?
Thanks
Your iOS app will need an Access Token for your drive. There are a number of ways of doing this, for example by embedding a Refresh Token in your app. You will need to carefully consider the security implications of doing that. My recommendation would be to host a "proxy" kind of service on App Engine and upload to that, which will then in turn upload it to your Drive account.
Related
I have an iOS app that loads PDF's for viewing. I want to allow the app to get the PDF's from a shared folder in google drive that is shared by some main admin account.
I have created a google drive project and set up OAuth for my app and am able to successfully list files using various queries with GTLQueryDrive.
The issue I am facing is related to the auth scope.
Lets say the google account hosting the files contains a shared folder: PDFAppFiles. We share this folder with 20 people.
Is there a way in my iOS app to request the auth scope for just that folder? I don't see this option listed: https://developers.google.com/drive/v2/web/scopes
Or, should I be approaching this problem a different way?
As the scopes page suggest, it authorizes your app to do what the requested scope is. This is a bit different from asking or setting permissions to a file or folder.
My recommended approach for the problem is to set permissions for every folder you want to control. The Share Files page of the Drive documentation details how you can do it.
I am working on integrating dropbox with iOS application. I want to implement below functionality.
User can share his existing dropbox file with app.
If user modifies any of the files, i should able to fetch the updated file and notify app server.
Also these files are not app related ones. User can share any docs in his dropbox account with app
After going through API, i found that i can use dropbox chooser UI to share files. chooser is generating temporary URL which i can share with my server to extract the file from dropbox.
But to get the modified files, i have to integrate with OAuth permission to run delta query on dropbox account. Here i am struck with two parallel functionalities chooser and OAuth which seems not related to each other. Even while asking OAuth permission also, dropbox taking to web url to grant permission instead of showing already logged in user on iOS.
How do i verify both chooser account and OAuth granted account are same? How will i show dropbox chooser(of OAuth connected) when user wants to add any file to app?
Correct me if i am wrong in understanding dropbox API. Also let me know if i have to provide more details.
In my rails app, I need to store my static assets (JS, CSS, images and downloads) on a storage service like S3, but I can not use S3 at the moment so I have searched and found google drive to be a good service.
Consider that in my app user can upload products and other user and pay then download the products.
I like to know that is there any problem for using google drive for these purposes?
Should I use google storage over google drive?
Does google drive provide secure and auto expire downloads link like S3?
You can use google drive through the google API.
We reserve a login through our apps account to act as the system and then share the requisite folders with that account.
That way you can then upload, download and pick up the files through the drive API using its account, without having to log in as different accounts each time.
I used the google_drive gem rather than the google one due to the hideousness of the security implementation.
Worth noting that the google drive gem now uses the google security implementation (since google shut off access by its previous method). You then have two options: a) Use a single account as described above.
b) Set up service account access.
Either should give you what you need.
You can use Google Drive for the storage of your static site files, although (I do not believe) Drive as a service has the same SLAs as Google Cloud Storage.
Google Cloud Storage is going to give you better SLAs and the expiring download links you are looking for (Cloud Storage Signed URLs).
To try and accomplish something similar in Drive, you would have to require each user to have a Google account, and programmatically set and revoke access, the only other access option is to make the share link available to everyone that has the link. (You might be able to circumvent this by copying the file around each time, but that would be ugly, and cumbersome).
Am writing an iPhone App in which I want to upload a text file from the iOS App to somewhere & I thought of using dropbox for it. I will upload the file to my dropbox ID from the App (i.e. the user won't be required to authenticate with his/her dropbox credentials). Is this possible? Dropbox API (I even tried GDrive API) asks for auth ; how do I give my dropbox credentials through code & upload the file to my dropbox account?
You must need Auth,otherwise in which account the file gets uploaded??
I don't think there is any other means to accomplish this except through OAuth.
Please refer to this framework that enables your app to access files from Dropbox without having to worry about the complexities of implementing a file browser, OAuth, or managing uploads and storage.
I'm trying hard to get my mind wrapped around how you would be able to store files in the cloud from an enterprise app without requesting the user to log in.
The background:
I'm developing an iOS app that will be distributed to certain employees in our company. As of today we already have an app that uses an FTP server to upload user created files. In this new app, I would like to skip the FTP server and instead use some sort of cloud storage (DropBox, Google Drive etc.)
The users will upload some files (around 1-2 uploads per day) to the cloud service, and people at our HQ will be able to look at these files.
I don't want to have each employee create a personal cloud drive account that would be linked with a "master" account. Rather, I want this specific application to always upload it's files to the cloud storage "master" account. Is this even possible?
Since only our employees have access to the app, I don't see the security factor as limiting. The information sent is not of use to anyone else than our company (no high-security stuff).
Is it possible to "hard-code" an OAuth token that corresponds with a certain account that the app always uses? Are there other possibilities that I'm not aware of (other than FTP or cloud storage)?
Any help will be appreciated.
Regards,
Jens Nilsson
how about use one dropbox account and hard code it in your app? then your enterprise user can upload their files respectively. surely you need do some trick to make no any file with duplicate name.
i am developing one iOs application that uses a parse cloud service to upload user generated files.
in that parse service, user dont need to create a account separately.each and every user can be able to uploads files to cloud where user can be able to visit all the files which is in the cloud which is created by some other user.
suppose if we want limit some user files accessibility or upload files privilege also we can achieve that through using the parse.
i just remember parse is not open source.