detect-browser-directory-upload
v1.0.3
Published
A simple utility to check if a browser can upload directory/folder contents with <input type='file'/>
Downloads
3
Maintainers
Readme
Browser Directory Upload Detection
A tiny package that checks if a browser can upload files within a directory.
Installation
npm install detect-browser-directory-upload --save
; oryarn add detect-browser-directory-upload
.
Usage
Usage
import checkForDirectorySupport from 'detect-browser-directory-upload'
const directorySupport = checkForDirectorySupport()
Browser Support for Directories
| 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.