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 basically would like to use the class_upload within OsCommerce administration. Images manipulations are not exactly easy for unexperencied shop owner. Unfortunately, class with the same name (upload) already exists in OsC.
I was expecting to "simply" change the name of the class from 'upload' to 'imagesupload' but then upload without any useful debug information. Any help would be welcome.
I expect to post (with your permission) this addition as a OsCommerce contribution under a GPL license.
I basically would like to use the class_upload within OsCommerce administration. Images manipulations are not exactly easy for unexperencied shop owner. Unfortunately, class with the same name (upload) already exists in OsC.
I was expecting to "simply" change the name of the class from 'upload' to 'imagesupload' but then upload without any useful debug information. Any help would be welcome.
I expect to post (with your permission) this addition as a OsCommerce contribution under a GPL license.
Thanks for this EXCELLENT work and spirit.
Let's say that the class is named My_OSC_Upload. You would then instantiate the class as following:
One thing thought, don't forget to also rename the constructor of the class if you change its name. So you have to change in two places:
and
becomes
and
Everything is solved now. Once again, thanks for the tip! I'll let you know about OSC contribution's development!