• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploader.php function _file_mime_type fails in CI 2.1

#18
[eluser]Unknown[/eluser]
Hi;

T think that the solution is modifing this line:

Code:
$finfo = new finfo(FILEINFO_MIME_TYPE);

for this:

Code:
$finfo = new finfo(FILEINFO_MIME);

When you use finfo like a object you must use FILEINFO_MIME and when use finfo_file function you must use FILEINFO_MIME_TYPE, I think ....




Messages In This Thread
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 02-10-2012, 12:16 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 02-10-2012, 01:39 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 02-10-2012, 07:16 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-06-2012, 11:04 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-07-2012, 02:42 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-07-2012, 03:33 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-20-2012, 05:36 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-21-2012, 12:08 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-21-2012, 01:48 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-21-2012, 08:56 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-21-2012, 10:11 PM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-22-2012, 02:17 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-22-2012, 02:31 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 03-22-2012, 02:37 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 05-05-2012, 12:18 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 05-05-2012, 12:58 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 05-06-2012, 09:38 AM
Uploader.php function _file_mime_type fails in CI 2.1 - by El Forum - 07-03-2012, 04:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.