notifyIfFileNotAllowed
See source codeChecks 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
Name | Description |
---|---|
|
The file to check |
| The options for the external content handler |
Returns
boolean
True if the file is allowed, false otherwise
Prev
getUncroppedSizeNext
onDragFromToolbarToCreateShape