Can't select multiple images to upload on Android - Chrome Web Browser

前端 未结 3 591
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 15:28

I would like to create a Web App where the user can select and upload multiple images from the phone\'s image gallery. This function works fine on iOS, but it seems to be broken

3条回答
  •  走了就别回头了
    2021-02-04 16:18

    here is the code I was using for desktop:

    
    

    we thought we needed two, here's the one for mobile:

    
    

    but what we noticed was that when you choose the "desktop" link it gave you an option to upload from the Documents, and this allowed multiple select by long pressing first.

    but from the "mobile" (image/*) input it let you select from Camera or some apps, but not Documents, and you weren't able to multi-select from them.

    so now i'm just using:

    
    

    this gives me access to select from Documents and Camera but not any of the apps, but at least Documents allows you to select multiple images.

    hopefully someone knows code to allow the apps as well!

    UPDATE

    we are now just using

    
    

    this gives you the apps, but not the Documents on my s4. you need to choose the right one for your site, but then the users need to know how to select multiple images based on the app that they use. using Gallery didn't work as well for me, so I started using Photos and that allowed me to multi-select images. HTH!

提交回复
热议问题