kibana/packages/shared-ux/file
Paul Tavares 6e190499e4
[Files] Add ability to optionally generate a File Hash during upload by allowing for custom Transforms to be used (#156039)
## Summary

closes #154047

- Exposes reusable `Transform` that will calculate a File's hash and
store it with the file's metadata. This Transform is "opt in" and not
the default behaviour.
- The `File.uploadContent()` method was enhanced to optionally accept
`options.transforms Array<Transform>`, thus allowing consumer of the
service to defined an additional set to be included in the file's
processing pipeline. The upload process was also altered to recognize
the use of the new `FileHashTransform` and store the file's `hash` if it
is used.
- Saved Object schema was also updated to include mappings for the
`file.hash` property. This update also impacts the creation of indexes
when the `FileClient` is created with custom indexes and those don't yet
exist.
2023-05-01 09:12:33 -07:00
..
context [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
file_picker/impl Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
file_upload/impl [Cases] Attaching files to cases (#154436) 2023-04-18 16:02:11 +02:00
image [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
mocks [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
types [Files] Add ability to optionally generate a File Hash during upload by allowing for custom Transforms to be used (#156039) 2023-05-01 09:12:33 -07:00
util [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00