-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Chrome+Edge don't trivially accept dropped folders when the page is running as a local file:/// origin: danialfarid/ng-file-upload#236 Setting `inputFile.webkitdirectory = true` allows for *browsing* to pick folders in this situation, but it only accepts folders and prevents individual files from being picked, so I've left it commented out while leaving the later logic it needs to work. - This means local usage+development is best experienced with either Firefox or (for Chrome/Edge) a simple http server. - Chrome+Edge don't always set file.webkitRelativePath, here we just patch it in but there might be a cleaner way. ant-design/ant-design#16426 (comment)
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters