⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Resize Image Upload Not Run in Version 1.3.3 ?



JpunkLy
  • profile picture
  • Member

Posted 02 July 2013 - 11:28 AM

I Have a Problem in Upload Image

in My grocery crud version 1.3.3 ....??

 

With This Code :

function callback_after_upload($uploader_response,$css_files_to_upload,$field_info)
	{
		$this->load->library('image_moo');

		$file_uploaded = $field_info->upload_path.'/'.$uploader_response[0]->name;

		$this->image_moo->load($file_uploaded)->resize(443,451)->save($file_uploaded,true);
		return true;

	}

My Callback_after_upload(); not running to crop a image upload.....

 

What a Another Way  To Fix This Problem.....??

Give Me Solve....

 

 


 


davidoster
  • profile picture
  • Member

Posted 03 July 2013 - 08:24 AM

Try with this header:

 

  1. function callback_after_upload($uploader_response, $field_info, $files_to_upload)

JpunkLy
  • profile picture
  • Member

Posted 05 July 2013 - 09:35 AM

what a different this function...on top...??


Amit Shah
  • profile picture
  • Member

Posted 08 July 2013 - 19:37 PM

Well the function above have clear difference with the field positioning. if you see .. $field_info as defined by David is in 2nd position and yours is in 3rd position. That surely will make much difference.