c# - Save/Open dialog is not appear while trying download by FileResult -


i have problem downloading files application. when call method downloadvacationproposal , returning file nothing happens. save/open dialog in browser not appearing.

this javascript code:

downloadvacationproposal: function () {         return $http({             method: "post",             url: "presence/downloadvacationproposal",         });     } 

and c# found here:

public fileresult downloadvacationproposal()     {          string filepath = server.mappath("~/files/proposal.doc");         string contenttype = "application/msword";           return file(filepath, contenttype, "proposal.doc");     } 

i'm missing something, don't know what, please help.

thanks lot.


Comments