A tiny package that checks if a browser can upload files within a directory.
-
npm install detect-browser-directory-upload --save
; or -
yarn add detect-browser-directory-upload
.
import checkForDirectorySupport from 'detect-browser-directory-upload'
const directorySupport = checkForDirectorySupport()
IE / Edge |
Firefox |
Chrome |
Safari |
iOS Safari |
Samsung |
Opera |
---|---|---|---|---|---|---|
Edge > 13 | > 49 | > 29 | > 11 | No | No | > 16 |
Full support details: https://caniuse.com/#search=webkitDirectory
IE and mobile browsers do not support directories.