SaasRock Logo

Uploaders

Or Drag and drop

import { FileBase64 } from "~/application/dtos/shared/FileBase64";

export default function PreviewUploaders() {
  function onDropped(base64: string, file: File) {
    alert(`@onDropped: [${base64.substr(0, 30)}...], [name (${file.name}), size (${file.size})]`);
  }
  return <UploadDocuments multiple={true} onDropped={onDropped} />;
}