application/libraries/MY_Upload.php
/**
	 * Finalized Data Array
	 *
	 * Returns an associative array containing all of the information
	 * related to the upload, allowing the developer easy access in one array.
	 *
	 * @param bool $json	If set to TRUE, returns the data in JSON format
	 *
	 * @return array|string
	 */
Finalized Data Array
Returns an associative array containing all of the information
related to the upload, allowing the developer easy access in one array.

@param bool $json    If set to TRUE, returns the data in JSON format

@return array|string
Finalized Data Array Returns an associative array containing all of the information related to the upload allowing the developer easy access in one array . @param bool $json If set to TRUE returns the data in JSON format @return array|string
public function data($json=FALSE)
	{
		$data = array (
			'key'				=> $this->file_key,					
			'finish'			=> $this->upload_finish,
			'error'				=> $this->upload_error,
			'file_name'			=> $this->file_name,				
			'file_type'			=> $this->file_type,
			'file_path'			=> $this->upload_path,
			'full_path'			=> $this->upload_path.$this->file_name,
			'raw_name'			=> str_replace($this->file_ext, '', $this->file_name),
			'orig_name'			=> $this->orig_name,
			'client_name'		=> $this->client_name,
			'file_ext'			=> $this->file_ext,
			'file_size'			=> $this->file_size,
			'size'				=> $this->file_content_length,		
			'is_image'			=> $this->is_image(),
			'image_width'		=> $this->image_width,
			'image_height'		=> $this->image_height,
			'image_type'		=> $this->image_type,
			'image_size_str'	=> $this->image_size_str,
		);
		$user_data = $this->get_user_data();
		$data = array_merge($user_data, $data);
		if ($json)
			return json_encode($data);
		else
			return $data;
	}
public function data ( $ json = FALSE ) { $ data = array ( 'key' => $ this -> file_key , 'finish' => $ this -> upload_finish , 'error' => $ this -> upload_error , 'file_name' => $ this -> file_name , 'file_type' => $ this -> file_type , 'file_path' => $ this -> upload_path , 'full_path' => $ this -> upload_path . $ this -> file_name , 'raw_name' => str_replace ( $ this -> file_ext , '' , $ this -> file_name ) , 'orig_name' => $ this -> orig_name , 'client_name' => $ this -> client_name , 'file_ext' => $ this -> file_ext , 'file_size' => $ this -> file_size , 'size' => $ this -> file_content_length , 'is_image' => $ this -> is_image ( ) , 'image_width' => $ this -> image_width , 'image_height' => $ this -> image_height , 'image_type' => $ this -> image_type , 'image_size_str' => $ this -> image_size_str , ) ; $ user_data = $ this -> get_user_data ( ) ; $ data = array_merge ( $ user_data , $ data ) ; if ( $ json ) return json_encode ( $ data ) ; else return $ data ; }
Finalized Data Array
 Returns an associative array containing all of the information
 related to the upload, allowing the developer easy access in one array.
Finalized Data Array Returns an associative array containing all of the information related to the upload allowing the developer easy access in one array .
// Common file data // HTML4 mode // Used by DropZone to send new file chunk // HTML5 mode // User set data // $data last so the request cannot overwritte common file data