Supporting HTML5 Media Capture and Files API in MobileSafari
Originator: | francesc.bgr | ||
Number: | rdar://9911008 | Date Originated: | 07-Aug-2011 02:46 PM |
Status: | Open | Resolved: | |
Product: | iPhone SDK | Product Version: | 9A5288d |
Classification: | Enhancement | Reproducible: | Always |
Summary: HTML5 Media Capture (http://www.w3.org/TR/html-media-capture/) allows to access the to the Camera from a webpage. HTML5 File API (http://www.w3.org/TR/FileAPI/) allows to access to files from a webpage. It would be great to have both API's implemented on the final version of iOS 5 because allows the user to upload files or take photos/videos directly from the browser and send them to a webpage from Safari. Steps to Reproduce: HTML5 Media Capture: Put the following code into an HTML file: <input type="file" accept="image/*" capture="camera" id="capture"> HTML5 File API: Put the following code into an HTML file: <input type="file"> Expected Results: HTML5 Media Capture: When the user taps the button, an UIImagePickerController (UIImagePickerControllerSourceTypeCamera) and allow the user to take a photo. HTML5 File API: When the user taps the button, it should appear (at least) an UIImagePickerController to select a photo to upload. Actual Results: Both buttons (HTML5 Media Capture and File API) are disabled and they can't be pressed. Regression: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!