0

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 Determine if uploaded file is image (any format) on MVC

But this is for MVC but I want for asp.net core

ali
  • 13
  • 5

1 Answers1

0

You can achive this using Image File Headers To Verify Image Format details . This answer will give you more details about the file header identification technique.

Samim Hussain
  • 396
  • 5
  • 14