class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
See all posts See thread Reply
$foo = new Upload($_FILES['form_field']);
$this->load->library('someclass');
$foo = $this->load->library('someclass');
$foo = $this->load->library('someclass', $_FILES['form_field']);
$foo = $this->load->library('someclass'); $this->someclass->init($_FILES['form_field']); $this->someclass->image_resize(true);
In class.upload we do that:
But in CI, we load the class this way:
It seems not be able to do or
I dont know where I put the $_FILES['form_field']...
my english is poor and I dont know if you will understand me...
etc.... It is one way to do it, but you can pass all the parameters in a different fashion.
Your library will then wrap the class.upload, and within the library, you will instantiate the upload class, set the parameters, etc...
I don't have the time to try, but that gives you an idea.