• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload BMP Fails.. no image_type info

#1
[eluser]yannyannyann[/eluser]
Hello,

I am trying to upload a BMP file :

this is the result of the CI upload data function :
Code:
$this->upload->data();

    [file_name] => blackbuck4.bmp
    [file_type] => application/octet-stream
    [file_path] => /mypath/
    [full_path] => /mypath/blackbuck4.bmp
    [raw_name] => blackbuck4
    [orig_name] => blackbuck.bmp
    [file_ext] => .bmp
    [file_size] => 768.05
    [is_image] =>
    [image_width] =>
    [image_height] =>
    [image_type] =>
    [image_size_str] =>


As you can see there is no information for the last 5 variables.

Therefore I have added the type in my MIMES.php file :

Code:
'bmp'    =>    array('image/bmp','application/octet-stream','image/x-ms-bmp'),

But I still get the same result : No information for is_image, image_width, image_height, image_type, image_size_str.


Any idea ?

#2
[eluser]yannyannyann[/eluser]
SOrry wrong section for that POST. PLease move to Code and Application Development. THanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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