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.
I am not familiar with Code Igniter, but from what I can see here, it should be possible to integrate the upload class in the framework, and extend its current upload capabilities.
It looks to me that
if ( ! $this->upload->do_upload())
should wrap the process() function of class.upload.phpReply
Re: class.upload with code Igniter? How to do? new!
I've solved this problem or whatever you call it. I've created a library named upload_lib and it has a function like upload_yap (in turkish) and it gets 1 parameter that your FILE name ( $_FILE['image'] etc.). I've wrote normal way verot upload scripts. I ve made it upload normal image and thumb at same time and those scripts go well then i ve returned an array of file destination names. If all controls go wrong i ve returned 0. And i ve load that library to my Controller and sent parameter to this library and i ve saw that it really works fine! ;) İf you want to see that codes you can text me ;) Regard.Reply
Re: class.upload with code Igniter? How to do? new!
I've created a library with class.upload file, made the 'load' but i dont know how to 'start' using the class...
sorry for my 'brazilian' english...
It looks to me that
should wrap the process() function of class.upload.php
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.
I've created a library named upload_lib and it has a function like upload_yap (in turkish) and it gets 1 parameter that your FILE name ( $_FILE['image'] etc.). I've wrote normal way verot upload scripts. I ve made it upload normal image and thumb at same time and those scripts go well then i ve returned an array of file destination names. If all controls go wrong i ve returned 0. And i ve load that library to my Controller and sent parameter to this library and i ve saw that it really works fine! ;) İf you want to see that codes you can text me ;) Regard.