ComponentsFile Uploader

FileUploader

Lets the user choose one or more files from their device storage. Once chosen, the files can be uploaded to a server or manipulated on the client side. Accepted file types follow the format of the html [input accept attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file).

GitHub LogoSource Code
Drop files here or click to upload

Controlled

HvFileUploader is limited to controlled behavior. Use the fileList prop to list the files, and listen to added/removed files with the onFilesAdded and onFileRemoved props respectively.

Drop files here or click to upload

Preview

The fileList supports a preview prop that can be used to render a custom ReactNode preview.

Drop files here or click to upload
  • already_here.jpg | 

    5.00kB

  • code.yaml | 

    200.00B

  • letter.docx | 

    2.00kB