notifyIfFileNotAllowed

See source code

Checks if a file is allowed to be uploaded. If it is not, it will show a toast explaining why to the user.

function notifyIfFileNotAllowed(
  file: File,
  options: TLDefaultExternalContentHandlerOpts,
): boolean;

Parameters

NameDescription

file

File;

The file to check

options

The options for the external content handler

Returns

boolean;

True if the file is allowed, false otherwise

Prev
hideAllTooltips
Next
onDragFromToolbarToCreateShape