Wednesday, August 27, 2008

flash/swf height width in CodeIgniter 1.6

In libraries/Upload.php

Edit the function is_image().

add the 'application/x-shockwave-flash' in $img_mimes


$img_mimes = array(
'image/gif',
'image/jpeg',
'image/png',
'application/x-shockwave-flash',
);



It simply allow set_image_properties function to read the height & width for flash.

//now this will not call for flash
if ( ! $this->is_image())
{
return;
}

2 comments:

rizal said...

could you give some example
how to use it in application?
thx b4
rizal
indonesia

salahuddin66 said...

you can simply upload swf file using the upload button that we create using this framework.