1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-03 00:14:23 +00:00

Fix the problem that xlsx,pptx.docx changed to be xls,ppt,doc when download file by IE.

This commit is contained in:
ly1217
2018-12-20 01:50:56 -08:00
committed by cuihaikuo
parent 8c7cb10114
commit 11d95b55fd

View File

@@ -123,11 +123,11 @@ extern SeafileSession *seaf;
static struct file_type_map ftmap[] = {
{ "txt", "text/plain" },
{ "doc", "application/vnd.ms-word" },
{ "docx", "application/vnd.ms-word" },
{ "docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" },
{ "ppt", "application/vnd.ms-powerpoint" },
{ "pptx", "application/vnd.ms-powerpoint" },
{ "pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation" },
{ "xls", "application/vnd.ms-excel" },
{ "xlsx", "application/vnd.ms-excel" },
{ "xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" },
{ "pdf", "application/pdf" },
{ "zip", "application/zip"},
{ "mp3", "audio/mp3" },