Pages

Wednesday, December 21, 2011

Uploading docx file in Code Igniter

1. Go to system->config directory.
2. Open the mimes.php file.
3. Add

'docx'    =>  'application/vnd.openxmlformats-officedocument.wordprocessingml.document'

at the end of the array.

4. Also add the `docx` in the allowed_types list where the upload library is called as configuration parameter.

No comments :

Post a Comment