'downloading an attachment file name changes when 2 dots(.) contained in filename'
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
When I download a file it gives other filename if containing more than one dot(.), for example download file : application.it.pdf Then it will display : application[1].it.pdf... how to contain the same file name during downloading.... I'm using following code : ------ ----- FileInfo f = new FileInfo(docname); Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(f.Name)); Response.AddHeader("Content-Length", fileSize.ToString()); ----- ----- any suggestions ..... Thnx in advance...