how to set the type array for extensions
See original GitHub issueI’m trying filter only for typical docs extensions:
type: [
'.pdf',
'.docx',
'com.microsoft.word.docx',
'application/docx',
'com.microsoft.excel.xlsx',
'application/xlsx',
'.xlsx'
],
but I can’t select them
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How can I extend typed Arrays in Swift? - Stack Overflow
For extending typed arrays with classes, the below works for me (Swift 2.2). For example, sorting a typed array:
Read more >Extension to Array<Element>?… | Apple Developer Forums
Is it possible to extend the swift native Array struct? There's no method on Array to sort by an NSSortDescriptor (bug 27723091 -...
Read more >Extending arrays for specific element types - Using Swift
I'm extending Array for a custom Element type to add a mutating function. However, I find myself unable to use the function, even...
Read more >Swift Extensions -Part Three: Type-Constrained Array ...
In this post, we'll explore a way to constrain Array extensions to apply only when the contained type is a certain class or...
Read more >ES6 Array Extensions in Depth - Ponyfoo
If you aren't the “install things on my computer” kind of human, you might prefer to hop on CodePen and then click on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys, sorry the late, this is how I was solved the issue
type: [ mime.lookup('docx'), mime.lookup('xlsx'), mime.lookup('doc'), mime.lookup('xls'), ],
And works perfect@douglas-cavalcante working code for .docx, .pptx, .xlsx, .pdfs.
Hope this works for you as well.