I’m trying to get the simple file extension for example "XLSX","pdf" and so on instead of the whole raw Content-type
when I use IFromFile.ContenType
gives me the raw content-type
header on the uploaded file, any help is really appreciated
I’m trying to get the simple file extension for example "XLSX","pdf" and so on instead of the whole raw Content-type
when I use IFromFile.ContenType
gives me the raw content-type
header on the uploaded file, any help is really appreciated
2
Answers
If you are looking for the extension type, Use
For the Mime type
For getting file extension from uploaded file (IFormFile), Use: