is there any short way to get MimeType of a file(especially an image) in asp.net core 2.1 web app?
Hi yolo47,
Please refer below links :
https://dotnetcoretutorials.com/2018/08/14/getting-a-mime-type-from-a-file-name-in-net-core/
https://stackoverflow.com/questions/1029740/get-mime-type-from-filename-extension
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.