Upload .doc files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Upload .doc files (/showthread.php?tid=346) |
Upload .doc files - GrigoreMihai - 11-24-2014 I can't upload .doc files . Controller Code: $config['upload_path'] = './assets/uploads/atasamente/'; When trying to add a .doc file i get Code: The filetype you are attempting to upload is not allowed. Any info on this ? RE: Upload .doc files - Rumolt - 11-24-2014 Modify \application\config\mimes.php Code: 'doc' => array('application/msword', 'application/vnd.ms-office'), RE: Upload .doc files - GrigoreMihai - 11-24-2014 I have tried that with no luck RE: Upload .doc files - testery20041 - 11-24-2014 (11-24-2014, 06:32 AM)GrigoreMihai Wrote: I have tried that with no luck Hi, try this: Code: echo mime_content_type('path_to_the_file'); Then must add in mimes.php the results for your extension. RE: Upload .doc files - Rufnex - 11-24-2014 Try this one: Code: 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/octet-stream','application/x-zip-compressed'), |