Open
Description
...
generateUniqueIdentifier: ((file: File, event: Event) => {
var relativePath = file.webkitRelativePath||file.fileName||file.name; // Some confusion in different versions of Firefox
var size = file.size;
return(size + '-' + relativePath.replace(/[^0-9a-zA-Z_-]/img, ''));
}) as () => string,
...
Returns:
Type '(file: File, event: Event) => string' is not assignable to type '() => string'.ts(2322)
This happens because:
generateUniqueIdentifier?: () => string;
Also, File type won't handle the attributes webkitRelativePath
file.relativePath
or file.fileName
Metadata
Metadata
Assignees
Labels
No labels