how to create a upload button? how to create a upload button?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

how to create a upload button?

Started by emaluzer, September 20, 2006, 01:12:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

emaluzer

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.

eruss

Quote from: 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.

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.