When trying to upload a MS Word 2007 file "Agreement V2.docx" using the
markup:-
[[File:Agreement V2.docx]]
I get the error:-
"File extension does not match MIME type."
In localsettings.ini I have added:-
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg',
'doc', 'xls',
'xlsx', 'mpp', 'pdf', 'ppt', 'tiff',
'bmp', 'docx', 'xlsx', 'pptx',
'ps', 'pps');
and $wgEnableUploads is set to true.
In includes/mime.info I have added:-
application/vnd.openxmlformats-officedocument.wordprocessingml.document
[OFFICE]
application/vnd.openxmlformats-officedocument.wordprocessingml.template
[OFFICE]
application/vnd.openxmlformats-officedocument.presentationml.presentatio
n [OFFICE]
application/vnd.openxmlformats-officedocument.presentationml.slideshow
[OFFICE]
application/vnd.openxmlformats-officedocument.presentationml.template
[OFFICE]
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[OFFICE]
application/vnd.openxmlformats-officedocument.spreadsheetml.template
[OFFICE]
In includes/mime.types I have added:-
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template
dotx
application/vnd.openxmlformats-officedocument.presentationml.presentatio
n pptx
application/vnd.openxmlformats-officedocument.presentationml.slideshow
ppsx
application/vnd.openxmlformats-officedocument.presentationml.template
potx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template
xltx
Can anyone help?
Charlie
MediaWiki v1.16.0, PHP v5.2.6 and MySQL v5.0.77 Apache v1.3.41