Mobile Safari: store camera uploads in photo album - ios

I am working on a site that allows users to upload photos from their iPad. This works well, but the photos are not stored locally on the iPad in the Photos application. Is there a way for photos made directly from Safari to be stored there or is this not possible?

Related

Download large number PHAssets from iCloud

I am working on an app that backs up a user's photo library to a flash drive. The issue I am running into is with photos that are stored in iCloud.
When the user has the 'Optimize Storage' option enabled, there can be thousands of photos stored in iCloud. When using requestImageForAsset or requestImageDataForAsset, if the photo is not stored on the phone, it gets downloaded back the user's photo library. This means thousands of photos, which can be several GB of data, are being loaded back onto the users device. For some users who are low on storage, it is causing the app to not function correctly.
Is there any way to download a full resolution PHAsset that is stored in the iCloud without it being copied to the Photos app?

Application that plays videos from the video library

I would like to create a simple app that does some video playback (with a few extra controls) of videos that you would find in the videos app. I've been searching and searching for a way to access the videos but I haven't found a single API that plays from the videos app.
Every solution I find plays videos from the photos app. I have apps that access the videos library on my iPad/iPhone so I'm assuming it's possible. Does anyone have the api for this?
Apps cannot access data from other applications on iOS, you cannot access the data of other apps unless it's made available by the app via a web server etc.
Your best bet is to use UIImagePicker to load the videos and images that are on your phone.
You can check out a reference here.
As for getting the videos off the videos app, that's not really possible (as far as I know), but you are able to show just photos or just videos with UIImagePicker using the mediaTypes property.

Play videos from iPad with out import into my app

In my app I want to play already saved videos from user's iPad. normally we use UIimagePickercontroller for import assets in our apps. but in my case i want to play video file without importing or saving in my app.
i already check the UIImagePickerControllerMediaURL which shows path of y app it means fail is planing from temporary folder file:///private/var/mobile/Applications/137E6A4A-3777-4926-8D52-434C2E3EDC0C/tmp/trim.4BAC5E82-D175-4ABD-BC9A-E3A8FF0D5551.MOV
I found some links witch are help you guys to understand
display image from URL retrieved from ALAsset in iPhone
play video from URL retrieved from ALAsset in iOS
but in my case i want to play video file without importing or saving
in my app
To achieve this, you have to know the ALAsset url of the desired video. Use ALAssetLibrary to load the video using ALAsset url.
You can display all the Photolibrary videos using UIimagePickercontroller and you can get the url of the video's when user choosing one from this. Save those url to your application storage and play it again while you need (using ALAsset and saved ALAsset url).

Filter the contents of the Photo Gallery from my app

I have an application that will take care of recording video using UIImagePickerController object and videos are saved in the shared library of IOS.
I have only one problem.
If you record video from an external application to my application, unfortunately I can see both the videos recorded with my application is the video recorded by the other application.
Is there a way to make the filter of assets not recorded with my application?
Thank you,
Vincenzo
Save video to apps document folder and while using, pick it from the same location.
Refer this link to save video in documents folder.
But your other apps are unable to access those and deleting app deletes captured videos too.

uploading images from iPad to a bucket in S3?

I am writing a web app in HTML5 that is supposed to run on iPads.
I would like to upload images from the iPad directly to a S3 bucket.
If that is not possible, I can settle for uploading to my server and then I'll store it on S3 myself.
I've seen on the net that the preferred tool is SWFUpload, but I fear it wont work on iPads.
Unfortunately you're out of luck. Apple block file uploads in iOS Safari. The browser doesn't have access to the iOS file system or photos.
https://apple.stackexchange.com/questions/4104/is-it-possible-to-upload-files-to-a-website-from-safari-on-iphone
You'll see if you go to Facebook's Mobile Web app http://m.facebook.com and try to post a photo, they tell users to email the photo to a custom email address.
If you want photo uploads you'll have to find another route to upload or use an iOS application.

Resources