fileresult Questions

7

Solved

Is there a way to stream a file using ASP.NET MVC FileContentResult within the browser with a specific name? I have noticed that you can either have a FileDialog (Open/Save) or you can stream the ...
Lapierre asked 8/7, 2010 at 18:16

7

Solved

I have the following JavaScript code and controller action in my ASP.NET-MVC project: Javascript: $("#exportPPT").live('click', function (e) { window.location.href = "/Initiative/Ge...
Hideandseek asked 3/1, 2014 at 2:24

2

Solved

I'm trying to return large files via a controller ActionResult and have implemented a custom FileResult class like the following. public class StreamedFileResult : FileResult { private string _F...
Schrader asked 17/9, 2012 at 17:24

5

Solved

I want to do something after user finishes downloading public class TestController : Controller { public FilePathResult Index() { return File("path/to/file", "mime"); } } What I tried is to ...
Crinose asked 2/9, 2015 at 9:54

1

Solved

Is it possible to get byte[] from FileResult in C#?
Koester asked 13/11, 2014 at 17:49

1

Solved

I have a fileresult method in asp.net mvc4 that returns a report in an excel file. Now how can i return an error message from this method if my conditions are not met !! Since we can only return a ...
Saltatorial asked 5/9, 2012 at 6:57

1

Solved

This might be a simple one but here goes: I'm implementing an excel downloadable report in my MVC3 application. I've used this method in the past and it's worked perfectly, however in this case, t...
Metallurgy asked 11/7, 2012 at 13:59

2

Solved

If the file name contains accents, it works as expected in Opera, FF, Chrome and IE9. But in IE8 file type is "unknown file type", and shows "file" as the file name (actually the last part of the ...
Downstairs asked 4/8, 2011 at 14:41

1

Solved

I have a zipped file which I am trying to stream to client: public FileResult GetFiles() { return File("test.zip", "application/zip"); } The file downloads but without the ".zip" extension.
Culinarian asked 8/11, 2010 at 16:32
1

© 2022 - 2024 — McMap. All rights reserved.