palantir/blueprint

FileInput should support "directory" prop

開放

#3,126 建立於 2018年11月5日

 (7 則留言) (1 個反應) (0 位負責人)TypeScript (2,167 個分叉)batch import
P3Package: coreType: feature requesthelp wanted

倉庫指標

星標
 (20,263 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Environment

  • Package version(s): not applicable
  • Browser and OS versions: not applicable

Feature request

FileInput does not support mozdirectory, directory, webkitdirectory or nwdirectory.

Per https://github.com/facebook/react/issues/3468#issuecomment-328197124 React does not support this specifically but the props can be added.

This feature allows selecting a directory itself vs files inside a directory.

Examples

Instead of having to define all 4 props above, directory could be used to add all at once.

貢獻者指南