![]() |
xml upload mimetype error with IE8. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: xml upload mimetype error with IE8. (/showthread.php?tid=27742) |
xml upload mimetype error with IE8. - El Forum - 02-19-2010 [eluser]HdotNET[/eluser] Hi all, Came across this bug/problem today when trying to upload XML files using the CI Upload lib. Seems everything <i>other</i> than IE8 is ok... My controller: Code: $config['allowed_types'] = 'xml'; application/config/mimes.php << default that comes with CI 1.7.2, also the same in the SVN trunk Code: 'xml' => 'text/xml', uploading a test.xml file in IE8 gives a filetype not allowed error. a print_r of $_FILES shows this: Code: Array as opposed to this in anything other than IE8: Code: Array Note the difference in the 'type' element... fix is simple enough: application/config/mimes.php Code: 'xml' => array('text/xml', 'application/octet-stream'), Odd one that... would appreciate someone else having a go if they could... if anything just to prove that I'm not going mad. tx H |