Can we access the iOS camera roll using the Safari's file chooser i.e. <input type="file">? According to this question, we cannot access the camera.
No, you can't. Safari doesn't support file uploading. You can, however, purchase and install iCab, which does.
Related
I'm creating a website which I would like to be supported on the iphone as well. The site allows users to upload images and manipulate them. On a desktop the user will simply click the upload button to select the file from their computer and upload it to the site. But this will fail on an iphone.
Is there any way for a pure web app which is using php/mysql/js and runs inside the browser to get images from a user's camera roll? Does Apple offer any APIs to make this possible?
No, it's not possible currently - but apparently iOS 6 is going to support image and video uploads from MobileSafari.
(Apart from that, you can ask your users if their device is jailbroken and id so, suggest them downloading Safari Upload Enabler from Cydia).
I was able to upload images present in my imagegallery using the phonegap application.
I want to know whether it will be possible for me to upload a pdf from the iphone application. Either using phonegap OR any native technologies.
Have you tried to add a <input type="file"> field and send the form against a script where you can work with it?
Perhaps this will lend you in the right way.
Is there a API or way for accessing the the iPhone's camera from Mobile Safari?I want to create a application that can read barcode within the browser.
Thanks in advance.
It's now supported in iOS 6. I believe it uses a regular form file input field.
You can see some explanation here.
Try using input tag <input type="file" name="image" accept="image/*" capture/>.
It works well as compared to getUserMedia method which is fully supported by Opera mobile and chrome higher versions.
Hope it help.
No. There's no way to do that. No web page can access internal devices.
You can do however a small tiny app that its launched via mobile safari link and makes user select the barcode image and then redirect to a web page that will process (the small app will also upload). Like what THIS guys actually implemented (the link provides code).
If you doesn't have experience with Objective C and Cocoa Touch you can create that app via PhoneGap like if you were creating a Web Page.
UPDATE
From iOS 6 and so on you actually can as the official specs says, you can use it via the upload API as seen here.
Is there any way to use <input type="file"> in Safari on iPhone/iPod Touch? Or is there something similar that I can use inside the browser? I want to upload a photo from the device to my database using the browser.
This is possible with iOs 6 or greater (http://www.apple.com/ios/whats-new/#safari). The browser renders
<input type="file">
and clicking on "Choose File" prompts the user to take a new photo or choose existing from the photo library.
Can't be done with plain XHTML/javascript as Safari does not support uploads. See this previous question for a potential workaround solution to upload photos.
I had the same problem today. The alternative browser iCab Mobile does support file uploads. I got it for my iPad and (at least for me) file upload works fine.
I was find around 1 week.help me pls TvT
Granted we're WAAAAAAY past the relevance of this post, but it's nice to know that iOS6 does allow <input type="file" /> and will allow you to select files from your camera roll.
iPhone Safari doesn't support file uploads.
This is because iOS doesn't really have the concept of a file, at the user interface level. It is an inherent limitation of the UI that there isn't a user-facing filesystem through which files may be manually exchanged between apps.
You would have to persuade the user to install a custom app to do it. (existing examples)
Agreed iOS 6.X solved this issue here you will find code, screenshots and tech limitations i.e: limitations (i.e> no audio files support, no live streaming video support)
iOS 6 New Features (supporting input type file)