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 recieves 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