H5 mobile phone realizes the combination of camera and photo album picture selection function.

problem description

the company"s product demand, very DT, wants to combine photography with album selection functions. When I click the select file button, I call up the camera, and then the camera screen can choose to enter the album, as shown in figure:

.

the environmental background of the problems and what methods you have tried

h5:

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

is to click a trigger button, how to call the camera that comes with the phone? I can also choose a photo album when I take a picture. I want to achieve the effect of picture 1

Aug.30,2021

requirements go back directly. Implementation involves nativeness and cannot be done.


you can only use < input type='file' accept='image/*' >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eae153-21a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eae153-21a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?