which mimetype should be only "application/pdf" in asp.net core web api?
Can someone help me ?
You want to have endpoint that will return you pdf file?
I don't remember the exact class from the top of my head, something like new FileContent should work. Have you tried googling it?
Yes, more like that. Files Uploader methods contain all types but Downloader methods separately like pdf file downloader and other types file downloader methods.
Ok, I will try it to do so.
You can use FileStreamResult you can specify content type in constructor
Aha, thanks a lot. ))
Обсуждают сегодня