Can't updload csv file with upload->do_upload() |
(02-09-2015, 09:40 AM)mariek Wrote: Yep, strange, maybe CI has changed recently on this point. It works on my recent projects (CI 2.1). It's not how CI does it - that was my point. $_FILES[$file]['type'] is an absolutely last-resort assumption in CI's MIME type detection. If you're reaching it, it means that you have none of the following: - ext/fileinfo (finfo_file()), which is bundled and installed with PHP by default since version 5.3) - exec(), shell_exec(), popen() and /usr/bin/file under a UNIX-based OS (or you're using Windows) - mime_content_type() CodeIgniter will attempt to use all of the above (in the order they're listed) before it falls back to the browser-specified value that is in $_FILES, so virtually no application should be ever relying on that one. |
Messages In This Thread |
Can't updload csv file with upload->do_upload() - by bvrignaud - 02-09-2015, 07:50 AM
RE: Can't updload csv file with upload->do_upload() - by mariek - 02-09-2015, 08:18 AM
RE: Can't updload csv file with upload->do_upload() - by Narf - 02-09-2015, 08:58 AM
RE: Can't updload csv file with upload->do_upload() - by bvrignaud - 02-09-2015, 09:08 AM
RE: Can't updload csv file with upload->do_upload() - by bvrignaud - 02-09-2015, 09:21 AM
RE: Can't updload csv file with upload->do_upload() - by bvrignaud - 02-09-2015, 09:37 AM
RE: Can't updload csv file with upload->do_upload() - by mariek - 02-09-2015, 09:40 AM
RE: Can't updload csv file with upload->do_upload() - by Narf - 02-09-2015, 10:01 AM
|