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
What File and Directory Entries API features aren’t supported in mobile?
I’m updating https://github.com/mdn/browser-compat-data for File and Directory Entries API features and am wondering what support to indicate for Chrome for Android and for iOS Safari.
In trying the test cases in https://wpt.live/entries-api/ I don’t see a way to run most of them on mobile — because they rely on doing drag-and-drop into the browser window, and I don’t know of any way to actually drag something from the browser window.
So I dunno maybe DataTransferItem.prototype.webkitGetAsEntry() could be considered as not supported on mobile? I mean just because of the platform not exposing any way to do drag and drop into a browser window?
But looking at the https://caniuse.com/#feat=input-file-directory Can I Use page, I see it shows the webkitdirectory content attribute as not supported in iOS Safari or Chrome for Android.
Maybe that’s because neither platform’s file picker has a way to actually select a directory/folder?
On the other hand, the underlying browser engines on both Chrome for Android and iOS Safari do implement and expose the relevant APIs defined in this spec — so the browser-engine support is there in those engines. And so if the platform ever were to change in a way that enabled drag-and-drop into a browser window and that exposed directory-selecting in the file picker, then things would already just work as expected, I guess?
What File and Directory Entries API features aren’t supported in mobile?
I’m updating https://github.com/mdn/browser-compat-data for File and Directory Entries API features and am wondering what support to indicate for Chrome for Android and for iOS Safari.
In trying the test cases in https://wpt.live/entries-api/ I don’t see a way to run most of them on mobile — because they rely on doing drag-and-drop into the browser window, and I don’t know of any way to actually drag something from the browser window.
So I dunno maybe
DataTransferItem.prototype.webkitGetAsEntry()
could be considered as not supported on mobile? I mean just because of the platform not exposing any way to do drag and drop into a browser window?But looking at the https://caniuse.com/#feat=input-file-directory Can I Use page, I see it shows the
webkitdirectory
content attribute as not supported in iOS Safari or Chrome for Android.Maybe that’s because neither platform’s file picker has a way to actually select a directory/folder?
I know that when I try the https://wpt.live/entries-api/file-webkitRelativePath-manual.html test case in Chrome for Android and iOS Safari, I do see that the platform file pickers don’t seem to provide any way to select directories/folders.
On the other hand, the underlying browser engines on both Chrome for Android and iOS Safari do implement and expose the relevant APIs defined in this spec — so the browser-engine support is there in those engines. And so if the platform ever were to change in a way that enabled drag-and-drop into a browser window and that exposed directory-selecting in the file picker, then things would already just work as expected, I guess?
So given all that, I’m not sure for https://github.com/mdn/browser-compat-data what’s best to indicate about mobile-browser support for features in this spec.
The text was updated successfully, but these errors were encountered: