.doc and .docx file upload |
Hi,
Myself Rupam Hazra.I am facing a problem on my project.Whenever i upload a file type .doc,.docx it rendered a error this file type is not valid.I have searched the solution with this issue but feasible solution didn't find. So i request you that would you give a solution. Thanks.
Try adding this to your ./application/config/mimes.php
PHP Code: 'doc' => array('application/msword', 'application/vnd.ms-office', '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 )
Did you check your error log file, it may put the error reason in there.
Some browsers see the mime types different then they are. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hi,
i have checked the log files and showing same error.I have attached the log file with this reply.Please check.
Have you set the allowed file type in the configuration ?
Have a look there Upload Preferences A good decision is based on knowledge and not on numbers. - Plato
Yes, Here is my controller code $config['allowed_types'] = 'gif|jpg|png|doc|pdf|docx';
@ Paradinight
I am using codeigniter 3.0.0 and i have already modified the settings on mimes.php for .doc and .docx as per @InsiteFX
|
Welcome Guest, Not a member yet? Register Sign In |