Created
November 18, 2011 13:18
-
-
Save squidge/1376438 to your computer and use it in GitHub Desktop.
Download file in FubuMVC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DownloadStream.Controllers | |
{ | |
using System.Web; | |
using FubuMVC.Core.Behaviors; | |
public class JpegController | |
{ | |
public DownloadFileModel Stream() | |
{ | |
return new DownloadFileModel | |
{ | |
ContentType = "application/pdf", | |
LocalFileName = HttpContext.Current.Server.MapPath("~/Assets/file.pdf") | |
}; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment