Home > Article > Web Front-end > HTML5 Plus realizes the function of taking photos or uploading pictures from photo albums on mobile APP
This article mainly introduces the Camera, GalleryIO, Storage and Uploader of HTML5 Plus in detail, and the relevant information to realize the function of taking pictures or selecting pictures in the album to upload on the mobile APP. Interested friends can refer to it
Use the Camera, GalleryIO, Storage and Uploader of HTML Plus to take pictures with the mobile APP or select pictures from the album to upload. The Camera module manages the camera of the device and can be used for photo and video operations. The camera management object is obtained through plus.camera. The Gallery module manages system albums and supports functions such as selecting pictures or video files from the album and saving pictures or video files to the album. Get the album management object through plus.gallery. The IO module manages the local file system and is used for operations such as directory browsing, file reading, and file writing of the file system. File system management objects can be obtained through plus.io. The Storage module manages the application's local data storage area and is used to save and read application data. The difference between application local data and localStorage and sessionStorage is that the data valid domain is different. The former can operate across domains within the application, the data storage period is persistent, and there is no capacity limit. Application local data management objects can be obtained through plus.storage. The Uploader module manages network upload tasks, is used to upload various files locally to the server, and supports cross-domain access operations. The upload management object can be obtained through plus.uploader. Uploader uploads data using HTTP POST method, and the data format conforms to the Multipart/form-data specification, that is, rfc1867 (Form-based File Upload in HTML) protocol.
HTML5 Plus 拍照或者相册选择图片上传 拍照或者相册选择图片上传
Rendering:
Implementation of Html5 clipboard function
Using PHP and HTML5 FormData to achieve refresh-free file upload
Html5 mobile terminal award-winning seamless scrolling animation implementation
The above is the detailed content of HTML5 Plus realizes the function of taking photos or uploading pictures from photo albums on mobile APP. For more information, please follow other related articles on the PHP Chinese website!