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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.