Just had to figure this one out, using info from this blog.
Either edit /etc/mime.types and add:
Or add the following to your apache.confCode:application/vnd.openxmlformats docx pptx xlsx
Then you need to tell Moodle what to do (following instructions are for 1.7.1).Code:AddType application/vnd.openxmlformats .docx .pptx .xlsx
1) Open lib/filelib.php
2) find the get_mimetypes_array() function
3) find the array definition
4) add the following elements
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).Code:'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'),
LOL Spoken like a 'real' techOriginally Posted by Geoff
It shows you're human, I suppose.
Let's face it...if the sysadmin doesnt know what they are the BOFHs arent likely to really.
There are currently 1 users browsing this thread. (0 members and 1 guests)