image upload restrict to .svg code example
Example: accept only image files upload html
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />