Mobile phone's camera and album call

Source: Internet
Author: User

Input Type=file How to transfer the user's mobile camera


Input has a property accept= "image/*" so that you can, at the same time see the other answers on the internet, try to have no effect. Write the record down

As follows:

Use input:file tag, go to call system default camera, camera, recording function, actually has a capture property, directly explain what function to call

<input type= "File" accept= "image/*" capture= "Camera" >

<input type= "File" accept= "video/*" capture= "camcorder" >

<input type= "File" accept= "audio/*" capture= "Microphone" >

Capture indicates that the system's default device can be captured, such as: camera--camera, camcorder--camera, microphone--recording.

Accept indicates that the system files directory is opened directly.

2
The input:file tag also supports a multiple property, which indicates that multiple selections can be supported, such as:

<input type= "File" accept= "image/*" multiple>

With this multiple, capture is useless, because multiple is designed to support multiple choices.

Mobile phone's camera and album call

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.