1996336481
* Update repository links to point to main Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Fix broken link in relatedtools.mdx Co-authored-by: Steven Clark <steven.clark@hashicorp.com> Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
1.2 KiB
1.2 KiB
FileToArrayBuffer
FileToArrayBuffer
is a component that will allow you to pick a file from the local file system. Once
loaded, this file will be emitted as a JS ArrayBuffer to the passed onChange
callback.
Params
Param | Type | Default | Description |
---|---|---|---|
onChange | function |
|
The function to call when the file read is complete. This function receives the file as a JS ArrayBuffer |
[label] | String |
|
Text to use as the label for the file input |
fileHelpText | String |
|
Text to use as help under the file input |
Example
<FileToArrayBuffer @onChange={{action (mut file)}} />
See