@mocanvas/mocanvas · function
declare function defaultHandleExternalFileAsset(editor: Editor, info: {
type: "file";
file: File;
}, opts: TLDefaultExternalContentHandlerOpts): Promise<Asset | undefined>Build an asset record for a file, without creating any shape.
The seam an app overrides to upload somewhere: return an asset whose src
points at your own storage and every path that handles a file gets it.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.