Input file means using native. So what is this native thing? I call him a shell, various realizations. Native browsers, uc, chrome, browsers under WeChat, etc. are all shells. The implementation of specific shells varies. In other words, he can take pictures of you or not. You can't control it. Therefore, the shell is generally required to provide the corresponding API for web calls.
<input id="File2" runat="server" type="file" accept="image/*" capture="camera" style="width:100%" />
Just use this.
No ~ you can only access the photo album, Apple can
Input file means using native. So what is this native thing? I call him a shell, various realizations. Native browsers, uc, chrome, browsers under WeChat, etc. are all shells. The implementation of specific shells varies.
In other words, he can take pictures of you or not. You can't control it. Therefore, the shell is generally required to provide the corresponding API for web calls.
Just add capture="camera"