Skip to content

Commit 75fe73e

Browse files
committed
Add directory upload support to Firefox and Edge
1 parent adc8b80 commit 75fe73e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/flow.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
* Check if directory upload is supported
5858
* @type {boolean}
5959
*/
60-
this.supportDirectory = /Chrome/.test(window.navigator.userAgent);
60+
this.supportDirectory = (
61+
/Chrome/.test(window.navigator.userAgent) ||
62+
/Firefox/.test(window.navigator.userAgent) ||
63+
/Edge/.test(window.navigator.userAgent)
64+
);
6165

6266
/**
6367
* List of FlowFile objects

0 commit comments

Comments
 (0)