Moodle

filelib.php should be updated for new MS Office 2007 formats

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.8.3, 1.9
  • Component/s: Resource
  • Labels:
    None
  • Environment:
    'Microsoft' environment

Description

Office 2007 has introduced new file types for Word, PowerPoint and Excel i.e. docx, pptx, and xlsx.
See discussion in http://moodle.org/mod/forum/discuss.php?d=71960#p321981

get_mime_types_array() in /lib/filelib.php should be updated to include the following (or similar) lines:

'docx' => array ('type'=>'application/msword', 'icon'=>'word.gif'),

'pptx' => array ('type'=>'application/vnd.ms-powerpoint', 'icon'=>'powerpoint.gif'),

'xlsx' => array ('type'=>'application/vnd.ms-excel', 'icon'=>'excel.gif'),

Issue Links

Activity

Hide
Geoffrey Rowland added a comment -

Oops! that should say: get_mimetypes_array() ...

Show
Geoffrey Rowland added a comment - Oops! that should say: get_mimetypes_array() ...
Hide
Geoffrey Rowland added a comment -

Since original posting, I have found more information on the mime-types of the new Office 2007 which may be relevant to the details of this issue/fix

Office 2007 Icons: http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx

Office 2007 mime types for Apache: http://www.vladville.com/2007/04/office-2007-mime-types-for-apache.html

Office 2007 mime types: http://uksbsguy.com/blogs/doverton/archive/2007/03/13/how-to-get-companyweb-windows-sharepoint-services-v2-to-work-with-office-2007.aspx

Show
Geoffrey Rowland added a comment - Since original posting, I have found more information on the mime-types of the new Office 2007 which may be relevant to the details of this issue/fix Office 2007 Icons: http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx Office 2007 mime types for Apache: http://www.vladville.com/2007/04/office-2007-mime-types-for-apache.html Office 2007 mime types: http://uksbsguy.com/blogs/doverton/archive/2007/03/13/how-to-get-companyweb-windows-sharepoint-services-v2-to-work-with-office-2007.aspx
Hide
Geoffrey Rowland added a comment -

Roger Emery has created an updated /lib/filelib.php and /pix/f/ folder in this forum posting: http://moodle.org/mod/forum/discuss.php?d=71960#p335114

Show
Geoffrey Rowland added a comment - Roger Emery has created an updated /lib/filelib.php and /pix/f/ folder in this forum posting: http://moodle.org/mod/forum/discuss.php?d=71960#p335114
Hide
Martin Dougiamas added a comment -

Thanks, I've added Roger's new mimetypes and icons to 1.8 and 1.9

Show
Martin Dougiamas added a comment - Thanks, I've added Roger's new mimetypes and icons to 1.8 and 1.9

People

Vote (4)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: