Multiple uploads + resizing
    
        
                
            
                
                    Hey,
I've been having issues with uploading images in my model. I have this so far:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
class Products_model extends Base_module_model {
 	public $required = array('product_name','product_part_number','product_first_image');
    public $image_fields=array('product_first_image_upload','product_second_image_upload',
                               'product_third_image_upload','product_fourth_image_upload');
    public $thumb = array("width"=>88,"height"=>88);
    public $big = array("width"=>300,"height"=>300);
    public $product_path; /* IMAGES UPLOAD TO images/products/ (thumbs/) */
    function __construct() {
        parent::__construct('fuel_products');
        $this->product_path = realpath(APPPATH . '../images/products');
    }
	function form_fields($values=array()) {
		$fields = parent::form_fields($values);
        //form stuff
		return $fields;
	}
    function on_after_post($values) {
        return $values
    }
}
?>
Basically, I need to make this so that when the images are sent, the model will, on_after_post, create uniformly sized small and large thumbnails (sent under the names in the var, $image_fields). I've tried everything and I would LOVE any help you could offer.
Cheers.                
                             
         
     
 
                 
            
Comments
https://github.com/daylightstudio/FUEL-CMS/tree/demo
It has a lot of that code to taking images and resizing them an placing them into a folder code you will probably need.
Edit: working brilliantly for one item. Thanks!