content type - How to get ContentType for file in ASP.NET MVC when using File Action Method -


Try to use the action result of the asp.net mvc file.

So it would seem that I have no actual limit on what type of file can be sent to the browser in my application to specify a ContentType to send the file to the browser. So, I can not always assume that it will be a "text / PDF", for example.

What is

Simple, Better!

Thank you,

>

or find alternate dictionary like this kind of question.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -