Cannot allow gif file type #507
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am trying to allow gif along with other file extensions. But seems it is not allowing gif as it is not included in FileType
Work around by adding custom filter:
mFileTypeFilter = {
name: 'mFileTypeFilter', fn: (item: any): boolean => {
let fileExt = item.name.slice(item.name.lastIndexOf('.') + 1).toLowerCase();
return !(this.allowedFileTypes.indexOf(fileExt) === -1);
}
}
You can try something like..