[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:
parent
88c2734c98
commit
d9369ca67a
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue