[Admin|Trunk]: change photo upload error message

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56227 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-06-27 12:34:31 +00:00
parent 88c2734c98
commit d9369ca67a
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ export class CuratorComponent implements OnInit {
if (event.target.files && event.target.files[0]) {
this.file = event.target.files[0];
if (this.file.type !== 'image/png' && this.file.type !== 'image/jpeg') {
this.handleUpdateError('You must choose a photo!', null);
this.handleUpdateError('You must choose a file with type: image/png or image/jpeg!', null);
this.file = null;
} else {
this.updateErrorMessage = '';