forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: emaluzer on September 20, 2006, 01:12:40 am

Title: how to create a upload button?
Post by: emaluzer on September 20, 2006, 01:12:40 am
I need to customize the upload.php page so a user has the choice of uploading their own picture file,  uploading from a URL, or (this is the new part)  a link that will automatically upload a default picture to the album if the user doesnt have a picture available.

You may wonder why I need this.  I have an online classifieds site, sometimes the customer doesnt have a picture of the item they want to sell.  Therefore they can list the details of  the item after clicking the default button (or a preprogrammed URL will work)  that uses a picture I have developed that says "NO PICTURE AVAILABLE". 

If someone could point me to which file and where I will have to code this at or at least the file where I can create a standard URL that points to my default no picture file.

Thanks for your help.
Title: Re: how to create a upload button?
Post by: eruss on September 21, 2006, 03:32:13 am
I need to customize the upload.php page so a user has the choice of uploading their own picture file,  uploading from a URL, or (this is the new part)  a link that will automatically upload a default picture to the album if the user doesnt have a picture available.

You may wonder why I need this.  I have an online classifieds site, sometimes the customer doesnt have a picture of the item they want to sell.  Therefore they can list the details of  the item after clicking the default button (or a preprogrammed URL will work)  that uses a picture I have developed that says "NO PICTURE AVAILABLE". 

If someone could point me to which file and where I will have to code this at or at least the file where I can create a standard URL that points to my default no picture file.

Thanks for your help.

Modifying upload.php to add another upload type would be one method.  (1) Browse & Upload, (2) URL/URI, (3) Default image.  I can't dig into all the file references where you would define this though.  You would need to mod more than upload.php.