You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In android, when <input type="file" multiple accept="image/*" /> selects only one image, it is not reflected. In other words, if we select only one image with the multiple selection option from the gallery instead of the file picker, will not reflect this. (if selected multiple images, it will reflect.)
<input type="file" multiple/>, <input type="file" />, <input type="file" accept="image/*" /> will be correctly reflected for single or multiple images.
(I am a newbie to android so what I am about to say could be wrong.)
In fact, when I looked at the method of showFilePicker in wry/src/android/kotlin/RustWebChromeClient.kt, it called clipData but not getData(), as the article above says.
(The showFilePicker is called from the onShowFileChooser in the same file, which is called when <input type="file"> is pressed.)
The text was updated successfully, but these errors were encountered:
aiueo13
changed the title
Android error when select one image not multiple by <input type="file"> .
Android error when select one image not multiple by <input type="file" accept="image/*" mul> .
Aug 22, 2024
aiueo13
changed the title
Android error when select one image not multiple by <input type="file" accept="image/*" mul> .
Android error when select one image not multiple by <input type="file" accept="image/*" multiple> .
Aug 22, 2024
Describe the bug
In android, when <input type="file" multiple accept="image/*" /> selects only one image, it is not reflected. In other words, if we select only one image with the multiple selection option from the gallery instead of the file picker, will not reflect this. (if selected multiple images, it will reflect.)
<input type="file" multiple/>, <input type="file" />, <input type="file" accept="image/*" /> will be correctly reflected for single or multiple images.
Additional context
I found an article mentioning the similar issue.
https://stackoverflow.com/questions/40472983/android-error-when-select-one-image-not-multiple?rq=3
(I am a newbie to android so what I am about to say could be wrong.)
In fact, when I looked at the method of showFilePicker in wry/src/android/kotlin/RustWebChromeClient.kt, it called clipData but not getData(), as the article above says.
(The showFilePicker is called from the onShowFileChooser in the same file, which is called when <input type="file"> is pressed.)
The text was updated successfully, but these errors were encountered: