Geoff Posted July 6, 2007 Posted July 6, 2007 Just had to figure this one out, using info from this blog. Either edit /etc/mime.types and add: application/vnd.openxmlformats docx pptx xlsx Or add the following to your apache.conf AddType application/vnd.openxmlformats .docx .pptx .xlsx Then you need to tell Moodle what to do (following instructions are for 1.7.1). 1) Open lib/filelib.php 2) find the get_mimetypes_array() function 3) find the array definition 4) add the following elements 'docx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'word.gif'), 'pptx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'powerpoint.gif'), 'xlsx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'excel.gif'), There's other file extensions for templates, etc. But I've ignored them as I don't know what they are and I'm hoping no one will use them (However if anyone wants to post them or let me know so I can, feel free).
ITWombat Posted July 7, 2007 Posted July 7, 2007 I've ignored them as I don't know what they are and I'm hoping no one will use them LOL Spoken like a 'real' tech It shows you're human, I suppose.
Joedetic Posted July 7, 2007 Posted July 7, 2007 Let's face it...if the sysadmin doesnt know what they are the BOFHs arent likely to really.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now