Loading...
 
Skip to main content

.doc, .xls and .ppt uploaded as application/vnd.ms-office

Status
Closed
Subject
.doc, .xls and .ppt uploaded as application/vnd.ms-office
Version
9.x
Category
  • Usability
Feature
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
Jonas Jermann
Lastmod by
Marc Laporte
Rating
(0)
Description

Old office documents are uploaded as application/vnd.ms-office


Depending on the Wiki server I use (it works on my home pc but not on the main server I maintain) old office documents (i.e. .doc, .xls, .ppt) are uploaded with mime-type application/vnd.ms-office. Instead they should have the mime-type application/msword for .doc, application/vnd.ms-excel for .xls and application/vnd.ms-powerpoint for .ppt. Note that the new formats (.docx, .xlsx, .pptx) are set correctly.

Why do we want the correct (more precise) mime-types?

The reason this is annoying (for me) is because I wanted to setup indexing of binary file content for searching. The search is based on the mime-type and with mime-type application/vnd.ms-office there is no easy way to assign it a binary-to-text-converter. If however the files had the correct mime-types I could assign the corresponding conversion program for each mime-type...

Fixing mime-types based on file extension?

Again it would be nice if there was an option to fix mime-types based on their extension. If it works without that: fine! But I read at several places that Fileinfo extension is not really reliable. It would be nice if there was an option/program to make sure that all mime-types are set according to a Tiki-Wiki standard (independant of the web server used). It would also be nice if it could correct all existing files. Example:

I uploaded some files before the mime-type fix. They all have the type application/zip. After the mime-type fix the files upload with the correct mime-type but I still have the existing application/zip files that I now have to search and fix manually by reuploading...

All in all I think it would provide a nice tool for users that have issues with mime-types...

Importance
7
Easy to solve?
7
Priority
49
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4280
Created
Thursday 16 August, 2012 09:57:24 UTC
by Jonas Jermann
LastModif
Thursday 21 November, 2013 18:56:47 UTC


Show PHP error messages