# angular schema form image upload accepting all file types

I have used the this plugin Angular Schema Form and all the things are working as expected but for image upload i need to have validations so as to allow the users input only images.

although the schema contains an accept attribute in the properties for image upload as follows:

{
"type": "object",
"properties": {
"text1": {
"type": "string",
"title": "Untitled Text field",
"name": "text1",
},
"file2": {
"type": "object",
"format": "file",