title: determine if uploaded file is image on asp.net core
body: <p>Hello friends I want when a photo from the view to the controller
  It was sent to check that there must be a photo and the malicious file has not been uploaded
  Just like the answers sent to this question
  <a href="https://stackoverflow.com/questions/11063900/determine-if-uploaded-file-is-image-any-format-on-mv">Determine if uploaded file is image (any format) on MVC</a></p>
  <p>But this is for MVC but I want for asp.net core</p>