/detect-browser-directory-upload

A simple utility to check if a browser can upload directory/folder contents with <input type='file'/>

Primary LanguageJavaScript

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; or

  • yarn add detect-browser-directory-upload.

Usage

import checkForDirectorySupport from 'detect-browser-directory-upload'

const directorySupport = checkForDirectorySupport()

Browser Support for Directories

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Samsung
Samsung
Opera
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.