We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8685b38 commit 36e2c13Copy full SHA for 36e2c13
README.md
@@ -24,4 +24,22 @@ accept({
24
name: 'my file.json',
25
type: 'application/json'
26
}, 'image/*') // => false
27
+
28
+accept({
29
+ name: 'my file.srt',
30
+ type: ''
31
+}, '.srt') // => true
32
+```
33
34
+You can also pass multiple mime types as a comma delimited string or array.
35
+```javascript
36
37
+ name: 'my file.json',
38
+ type: 'application/json'
39
+}, 'application/json,video/*') // => true
40
41
42
43
44
+}, ['application/json', 'video/*']) // => true
45
```
0 commit comments