<input style={{ display: "none" }} id="imgOn" type="file" accept="image/*" onChange={() => this.imgUpload()} />
HTML input file disable “take photo” option
没发现禁用拍照选项的解决办法,可以尝试按上面回答中给出的解决方案尝试下,但这样做用户体验不是很好
2.1m questions
2.1m answers
60 comments
57.0k users