Showing posts with label firefox file download issue. Show all posts
Showing posts with label firefox file download issue. Show all posts

Wednesday, June 8, 2016

Problem downloading file having spaces in Firefox

The problem is while having spaces in the file name and trying to download file in Firefox using ASP.NET web site.

Response.AddHeader("Content-Disposition", "attachment; filename=" + Filename);


The solution to this problem is to use following code

Response.AddHeader("Content-Disposition", "attachment; filename=\"" + Filename + "\"");