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

#17
[eluser]otaviocarvalho[/eluser]
Yeah, i think that could be the problem but i don't have access to the php.ini file right now, because it is hosted by my client.

The solution i found was remove the call of the function from the line #199:

Code:
$this->file_type = $_FILES[$field]['type'];

And replace with:

Code:
$this->_file_mime_type($_FILES[$field]);

Just because this is in admin part of my system and the ecommerce i'm builting don't have any uploads from the users at this time.

I think this is a poor solution (and unsecure too), but i think that a solution that breaks when you are using linux with an php installation who blocks exec() calls (what not is an uncommon situation) is as poor as my approach.


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.