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#
Related
I want to write a PWA app (to run on Android and Windows 10) working with user's files and photos on OneDrive. I need to store some metadata and I prefer those to be inaccessible to the user.
What are my options?
OneDrive approot special folder is normal folder visible to the user.
I do not want to store the data locally on the device, as I want the app to be run on multiple devices.
I cannot use Windows 10 UWP roaming app data, as they would sync between Windows 10 devices, but not to Android devices.
I do not want to store the data at the PWA's backend, as it would need creating an extra user account. I want the user to log in to their MS Account to access their OneDrive, and to create another account for storing metadata. I prefer the app to be 100% client side.
Are there any other options I missed? I would prefer creating some hidden folder on OneDrive accessible by the app, but by the user. OneDrive does not seem to have such functionality, at least if I read it's API docs properly.
Depending on your exact use case you may want to check out Microsoft Graph:
https://developer.microsoft.com/en-us/graph
Microsoft Graph is an cross-device experiences platform and available for nearly all platforms. Within the Microsoft Graph you can use Activities to share metadata between different devices: https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/v1.0/resources/project_rome_overview.md
There is also an demo project on Github of an PWA with usage of the Microsoft Graph:
https://github.com/boyofgreen/MSGraphPWA
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.
I am creating a web service that mashes up Dropbox, Soundcloud and Wordpress.
I need a callback when user places a file in his Dropbox folder so that I can update the browser user interface. Since it is possible to ask for a download link locally before a file is completely synced, I naturally expect it to be possible to get a callback when file sync has started on a file-by-file basis.
However according to what I experienced /delta only shows files that have finished syncing.
Is there a way to know when file sync starts? If it is not possible via Core API, could it be possible with a small client applet (java or something)?
The Dropbox API doesn't currently expose any notion of a pending upload or file sync status. It can only return information about files that have finished uploading.
Likewise, even with a client app running on the same OS, there currently isn't an interface for communicating with the official Dropbox desktop client to get this information.
I am able to upload files to OneDrive using the API
http://developer.nokia.com/community/wiki/SkyDrive_-_How_to_upload_content_on_Windows_Phone
I would like to register my Windows Phone App but the application management site does not seem to work
https://manage.dev.live.com/
Is there there any other way I can register my app for OneDrive?
Try this:
First of all go to One Drive Dev Center and do login then go do Dashboard, You would be redirected to Register app Wizard that is Register Application
I have this MVC4 web application that does CRUD actions for my database. Now I need to upload log files from native mobile application to database. Since it upload log file directly from mobile application code, it does not use RAZOR web page. I'm not sure how to set controller parameter to accept log file. Please give me some hint!