2 Replies
      Latest reply on Mar 11, 2019 12:40 AM by boy.p@excelbangkok.com
      boy.p@excelbangkok.com Level 1 Level 1 (0 points)

        Hello all,


        First of all, Let me explain my application application

        1. I have front end applcation which is angular 5

        2. I have back end application which is c# web api as below


                            var fileName = fileName + file.Extension;

                            var utf8fileName = Uri.EscapeDataString(fileName);                   


                            string contentDisposition = "attachment; filename=\"" + fileName + "\"; filename*=UTF-8''" + utf8fileName;

                            output = Request.CreateResponse(HttpStatusCode.OK);

                            output.Content = new StreamContent(fileStream);                  

                            output.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");

                            output.Content.Headers.Add("Content-disposition", contentDisposition)



        It's seems to be ok in window and chrome but when I open my app on safari in ipad the excel file name has been changed to File.xlsx









        File name has been changed to File.xlsx. I don't know why and how ios is working.


        Thanks in advance


        Phanuwat wattanapraya