mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1097] Don't upload file if extension is not acceptable (#2143)
* FileModel's extension getter * Filter out not supported extension from upload
This commit is contained in:
committed by
Eugenio Romano
parent
1673b57a28
commit
cb4bc04312
@@ -73,4 +73,8 @@ export class FileModel {
|
||||
return v.toString(16);
|
||||
});
|
||||
}
|
||||
|
||||
get extension(): string {
|
||||
return this.name.slice((Math.max(0, this.name.lastIndexOf('.')) || Infinity) + 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user