@mocanvas/mocanvas · function
declare function notifyIfFileNotAllowed(editor: Editor, file: File, options: TLDefaultExternalContentHandlerOpts): booleanWhether file may be turned into an asset — and if not, say so on screen.
Returns true when the file is allowed. The toast is the point: a file that
is silently ignored looks like a broken drop target, so every rejection here
produces one, with the reason spelled out.
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.