I give the file to the client from the server:
Dim fileInfo As IO.FileInfo = New IO.FileInfo(file) Response.Clear() Response.ContentType = "application;name=" + fileInfo.Name Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileInfo.Name) Response.AppendHeader("Content-Length", fileInfo.Length.ToString()) Response.WriteFile(file) Response.Flush() file - file format .docx .
The browser, as it should be, asks "Save or open the file?". On IE works as it should, but on Opera the file extension changes to .zip .
It is clear that .docx is the same .zip archive, but the file with the .docx extension is sent from the server, why does it change?