Welcome Guest, Not a member yet? Register   Sign In
.doc and .docx file upload
#2

Try adding this to your ./application/config/mimes.php

PHP Code:
'doc'    => array('application/msword''application/vnd.ms-office''application/octet-stream'),
'docx'    => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document''application/zip''application/msword''application/x-zip''application/octet-stream'), 

Just add this to the end of them both.

PHP Code:
'application/octet-stream' 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
.doc and .docx file upload - by rupamhazra - 11-07-2016, 12:31 AM
RE: .doc and .docx file upload - by InsiteFX - 11-07-2016, 05:03 AM
RE: .doc and .docx file upload - by rupamhazra - 11-07-2016, 05:17 AM
RE: .doc and .docx file upload - by InsiteFX - 11-07-2016, 11:25 AM
RE: .doc and .docx file upload - by rupamhazra - 11-07-2016, 10:09 PM
RE: .doc and .docx file upload - by salain - 11-07-2016, 10:47 PM
RE: .doc and .docx file upload - by rupamhazra - 11-07-2016, 11:06 PM
RE: .doc and .docx file upload - by Paradinight - 11-08-2016, 10:51 AM
RE: .doc and .docx file upload - by rupamhazra - 11-08-2016, 09:34 PM
RE: .doc and .docx file upload - by Paradinight - 11-08-2016, 09:50 PM
RE: .doc and .docx file upload - by rupamhazra - 11-08-2016, 10:09 PM
RE: .doc and .docx file upload - by salain - 11-09-2016, 02:24 AM
RE: .doc and .docx file upload - by rupamhazra - 11-09-2016, 03:29 AM
RE: .doc and .docx file upload - by Paradinight - 11-09-2016, 02:07 PM
RE: .doc and .docx file upload - by rupamhazra - 11-09-2016, 09:35 PM
RE: .doc and .docx file upload - by InsiteFX - 11-09-2016, 07:28 AM
RE: .doc and .docx file upload - by rupamhazra - 11-09-2016, 09:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB