The files service provides functionality to manage, retrieve, share files in Kibana.
The file service provides the following capabilities to plugins to create, manage and share file contents:
- Auto-register HTTP APIs for your file
- These HTTP APIs can also be access controlled
- A server-side client
- A browser-side client
- Various reusable UI components that can provide a consistent user experience
- Publicly sharing files (i.e., bypassing all security)
- Leveraging file caching where possible
See the tutorial.
See the reference.
To see any component in action run
yarn storybook files
and follow the prompts
The files service offers a number of UI components that are reusable UIs to provide a consistent UX for managing files while keeping integration with the file service light for consumers.
<Image />
- A specialized component for efficiently downloading and rendering files in the UI that wraps animg
tag.<UploadFile />
- TheEuiFilePicker
wrapped with robust upload logic for one or multiple files<FilePicker />
- A way for users to view and select from one or more uploaded files
in the terminal.
See the kibana contributing guide for instructions setting up your development environment.