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 saw I forgot to take out the first call in my sample just after I posted ;-)
So, what you say is I have to store the converted/resized image on disk first, then read it into a variable for further processing, like store it into the db etc ... Correct ?
This I got working just fine in my tests so I guess I can proceed then :) Thank's for a great tool and super great support and responce time!
FYI ... I spent last few days looking all over for something like this and I found quite a few similar tools, but nothing I was too happy with ... Until I found out about you and class.upload !!!
No, what I am saying is that you can either: - call process() once, without any argument, in order to get the image content, and store in in the database. - call process() a first time to store the file on disk, and then call it a second time to store the image in the database.
You probably want the first solution, since I don't think that you need to also store the file on disk. You don't need to store the file on disk to read it back and store it in the database. Calling process() without argument does that for you (without even storing the image on disk).
And if you like the class so much, feel free to spread the word about it! And if you like my response time, also feel free to support the class by donating ;)Reply
So, what you say is I have to store the converted/resized image on disk first, then read it into a variable for further processing, like store it into the db etc ... Correct ?
This I got working just fine in my tests so I guess I can proceed then :)
Thank's for a great tool and super great support and responce time!
FYI ... I spent last few days looking all over for something like this and I found quite a few similar tools, but nothing I was too happy with ... Until I found out about you and class.upload !!!
Lucky me ;-)
Thanks Colin!!!
- call process() once, without any argument, in order to get the image content, and store in in the database.
- call process() a first time to store the file on disk, and then call it a second time to store the image in the database.
You probably want the first solution, since I don't think that you need to also store the file on disk. You don't need to store the file on disk to read it back and store it in the database. Calling process() without argument does that for you (without even storing the image on disk).
And if you like the class so much, feel free to spread the word about it! And if you like my response time, also feel free to support the class by donating ;)