Jump to content

Recommended Posts

Posted

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).

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...