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
my chrome browser on android yields true - but selecting a folder isn't possible.
however it lets me pick files instead.
I would have been fine with a grateful degration or a progressive enhancement. But upon selecting files the input.files.length is still 0. So the change event won't even fire.
anyone have any suggestions?
The text was updated successfully, but these errors were encountered:
i figured maybe it wouldn't be possible to alter the filelist somehow if the webkitdirectory was added
functionFileListItem(a){a=[].slice.call(Array.isArray(a) ? a : arguments)for(varc,b=c=a.length,d=!0;b--&&d;)d=a[b]instanceofFileif(!d)thrownewTypeError("expected argument to FileList is File or array of File objects")for(b=(newClipboardEvent("")).clipboardData||newDataTransfer;c--;)b.items.add(a[c])returnb.files}varfiles=[newFile(['content'],'sample1.txt'),newFile(['abc'],'sample2.txt')];input.webkitdirectory=trueinput.files=newFileListItem(files)input.files.length===2// detection fail expected it to be 0 to match manual test result
detecting directory support is flaky on mobile.
my chrome browser on android yields true - but selecting a folder isn't possible.
however it lets me pick files instead.
I would have been fine with a grateful degration or a progressive enhancement. But upon selecting files the
input.files.length
is still 0. So the change event won't even fire.anyone have any suggestions?
The text was updated successfully, but these errors were encountered: