Mobile Safari Multiple Upload with Camera

后端 未结 1 537
面向向阳花
面向向阳花 2021-02-02 16:32

This is regarding iOS6\'s ability to handle .

When you ask for a single file:



        
相关标签:
1条回答
  • 2021-02-02 16:57

    iOS 9+ Update: When focusing an <input type="file" /> in iOS 9, the user is allowed to choose whether to take a picture or choose a picture from the Photo library. This functionality is consistent even when specifying the multiple attribute.
    Thanks Voodoo for the heads up comment!


    The reason that the camera is not available on multiselect uploads is because iOS is designed to allow "selecting multiple pictures" or "take one picture and select it".

    Historically, the "Take picture" choice has always allowed the user to take a temporary picture to memory, and that single picture is provided to the application, without permitting selecting additional saved pictures. In fact, that temporary picture taken on the spot is not saved to the Camera Roll.

    The only way around that when using HTML is to instruct the user to take multiple pictures ahead of time, and then upload them altogether.

    You can see a similar situation in the Messages (former SMS) App, where you are given the same choices. Selecting to take a picture, will let you take one and that one is immediately placed to be sent. The fact that it is an App allows you to keep on adding by subsequently pressing the picture button. This, however, isn't the case for HTML input fields.

    PS. I recall this being the case as far back as iOS 4.


    As a last resort, you could create your own "simple" iOS App that allows the user to either select pictures, or take and upload simultaneously.

    0 讨论(0)
提交回复
热议问题