I can not find any documents on this. I am uploading images
$ config ['create_thumb'] = TRUE; To build thumbs and preserve the original image
is there a way to get thumb image file name? _thumb is added automatically to the name of the thumbnail but there is no function to remove the full name.
This is actually a very easy way to do this:
($ This-> upload-> do_upload ()) // if the file was uploaded {$ data = $ this-> Upload-> Data (); // Returns information about your uploaded file $ thumbnail = $ data ['raw_name'].'_ thumb ' $ Data ['file_ext']; // here it is}
Comments
Post a Comment