kibana/examples/files_example
Vadim Kibana da4307e80e
[Files] Per file max upload size (#151993)
## Summary

Closes https://github.com/elastic/kibana/issues/151985

- ~~This PR introduces `maxUploadSize` file kind setting, which allows
to enforce upload size per file, instead of using one value for the
whole file kind~~.
- ~~I left the `maxSizeBytes` as-is for now, because it is actually used
in two places: (1) in the Files client; (2) in HTTP routes. So, I didn't
find an easy way to reuse it~~.
- Allows to configure max upload size per file.
- This required separation of `FileKind` interface between browser and
server. And correspondingly changes to the file kind registry.


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-27 10:19:40 +01:00
..
common [Files] Move <FileUpload /> and <FilePicker /> 👉🏻 packages/shared-ux/file (#146284) 2022-11-29 08:48:23 +01:00
public [Files] Per file max upload size (#151993) 2023-02-27 10:19:40 +01:00
server [Files] move to src (#144044) 2022-10-31 06:46:52 -07:00
kibana.jsonc [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
README.md [Files] move to src (#144044) 2022-10-31 06:46:52 -07:00
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00

Files example

An example plugin that integrates with the Kibana "files" plugin.

Key integration features demoed in this plugin

  • Create/upload a new file
  • Delete a file
  • View a file's details
  • View a file's contents
  • Downloading a file via an HTML button
  • List a set of files
  • Register a file kind