How I can upload a camera roll image automatically to server? This same thing implemented in Dropbox and Google Photos and some other apps also. What should I do to achieve such kind of functionality in my app?
What you are asking is not a single question, but a paradigm. An entire process, that includes:
Obtaining authorisation to access the photo library.
Accessing assets (images/videos) in the user's gallery.
Uploading to a server.
Read up on all the three, if you want to achieve this. In a nutshell it is as follows:
You use ALAssetsLibrary to access assets (the photos and videos in the user's gallery). If the user has not authorized yet, the user will be asked automatically. If the user has authorised access, you can request for assets. If the user has denied access explicitly, you should not attempt to access assets.
See THIS answer to see how you can access images using the ALAssetsLibrary.
In the success block, you can access the images with :
UIImage* image = [UIImage imageWithCGImage:asset.defaultRepresentation.fullResolutionImage];
Once you have the image, you can upload it using any technique (NSURLSession, AFNetworking, etc)
dropbox not upload the camera roll images automatically to server or there is no application in iOS which automatically upload images until user give it access permission.
Dropbox not working until user enable photo access permission.
if you want to upload the images first take all images access using ALAssetsLibrary than send the images to server in background using GCD or NSOperationQueue
are you trying to make it so that when you take a picture with the iOS camera it auto uploads to your server?
I don't believe you can do that, my understanding with dropbox and google on your iOS device is that their app has to be open to upload pictures. From there it's no big deal to access a user's photos and allow them to upload one or many pictures.
Dropbox and google also have desktop apps that run on OS X that will auto upload images after the device is plugged into the computer, but I am assuming that isn't what you are asking.
Related
I want to upload files from my server to my users's google drive storage, after they authenticate, the questions are:
Is it possible to do that?
Do I have to re-authenticate the user every time they like to upload a new file?
Could I embed the uploaded MP4 files in my website? (using the html video source as the file's download link of the user's google drive account)
do I need to re-authenticate the user if they just want to see the embedded videos some time later, in other words, is there anyway I could save some sort of a Token so they don't keep doing that.
Is it possible to do that?
Yes
Do I have to re-authenticate the user every time they like to upload a new file?
No, store a refresh token for the user and they wont need to authenticate each time.
Could I embed the uploaded MP4 files in my website? (using the html video source as the file's download link of the user's google drive account)
I wouldn't recommend it google drive isn't really designed for hosting of files in this manner that and people would need access to the file to download it anyway, its a big can of worms.
do I need to re-authenticate the user if they just want to see the embedded videos some time later, in other words, is there anyway I could save some sort of a Token so they don't keep doing that.
Yes as mentioned if the files are uploaded to your drive account you own them. You would need to share the files with anyone that you want to have access to them. You could set the files to public but thats not the best way to go about this.
Reference
Using OAuth 2.0 to Access Google APIs
I want to upload files to google drive. I'm using C# and have referred following links to get started
https://developers.google.com/drive/v3/web/quickstart/dotnet
https://developers.google.com/drive/v3/web/manage-uploads
I'm able to upload the file successfully to google drive but my main concern is I don't want to display any sort of UI/human interaction. It should be able to automatically upload the file.
Using OAuth2.0 there is a need that we have to manage and generate access/refresh token. I have no idea how these should be managed.
Isn't there any other way where the user can have access to google drive programmatically just by sharing his/her Gmail account username/password to achieve this?
Isn't there any other way where the user can have access to google drive programmatically just by sharing his/her Gmail account username/password to achieve this?
No there is not
The user needs to authorise your app one time. After that, you can save Refresh Token and use that for future unattended use.
Does Google Track Machine ID when uploading images to Google+ profile?
wondering if simply using proxies and clearing browser cache (and not use chrome) is enough to keep google profiles completely separate from one another
is there an app for that?
After my iPhone app user Signs In using the standard Google Drive sign in GTMOAuth2ViewController, I want my app to be able to view and edit the Google Drive files. But I don't want users to be able to edit, replace, or remove those same files using a browser. Is it possible to set up permissions to make this work?
Check out the application data folder: https://developers.google.com/drive/appdata?hl=en This might do what you want.
In a iphone mobile app, when a user is allowed to upload a video the app would then save that video in a file system, and save the name in the database. My question is how would/could I then access that video on a website version of the mobile app. I'd like to avoid using any webservices or wcf if possible.
In Step format:
1. On iPhone app, user uploads video from photo library.
2. That video is then saved to file system and name is stored in database.
3. (?)User can then go online to website version of the app and see his/her videos that he/she had uploaded from their iPhone.(?)
How can the file system be accessed? bc isnt' the filesystem local within app? I would plan on accessing it via mvc app c#