Excel file name has been changed to File.xlsx when attach to email in safari

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


1.


2.


3.



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


Thanks in advance


Phanuwat wattanapraya

Replies

Is it a bug of safari in ipad?

Nobody can help?