Upload pictures with the file tag in input. Only single pictures are allowed to be uploaded at a time. The problem of taking pictures is automatically enabled in ios.

The

code is as follows:
clipboard.png

clipboard.png
now you only need to call the mobile photo album and upload the leaflet each time. It can be done normally on Android, but ios will automatically pop up a menu, take photos or select photo albums. Baidu has said that it cannot cancel the original ios function and cannot upload photos directly. It should be the wrong format for photos to generate pictures, but the customer requirements are unified. I would like to ask js whether to determine whether the ios setting and directly call the photo album, or how to handle and upload the photos generated by the photo, ask for advice.

Jan.09,2022

I don't know what kind of test you use, but I just open the camera to take pictures in the browser

<input type="file" capture="camera" />
Menu