coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: limey on May 30, 2006, 11:59:22 AM

Title: need code to call picture upload script with parameters
Post by: limey on May 30, 2006, 11:59:22 AM
Hi,

I'm wanting to add images to my coppermine gallery, but without having to login to the online gallery account and choose the add image button etc.

Basically, does anybody have the code that I can use to call the upload script which adds images to an album.

I see the process as:
call login script with user name and password
call upload script with picture objects as parameters
call logout script

Please correct my assumptions if incorrect.
Title: Re: need code to call picture upload script with parameters
Post by: Tranz on May 30, 2006, 05:18:06 PM
You might as well allow anonymous uploads in Groups manager. Not recommended, though, unless you allow approvals.
Title: Re: need code to call picture upload script with parameters
Post by: Joachim Müller on May 31, 2006, 12:12:51 AM
Quote from: limey on May 30, 2006, 11:59:22 AM
Please correct my assumptions if incorrect.
yeah, incorrect.
Title: Re: need code to call picture upload script with parameters
Post by: limey on May 31, 2006, 12:07:18 PM
I don't want to allow anonymous uploads.

I just want to know what code to write to call the upload script function and what parameters to pass it?
Title: Re: need code to call picture upload script with parameters
Post by: Stramm on May 31, 2006, 01:18:11 PM
just open upload.php and have a look at the code

before set in the group manager
File upload boxes to 1   
and URI upload boxes to 0
Title: Re: need code to call picture upload script with parameters
Post by: Tranz on May 31, 2006, 03:29:25 PM
Oh, so you want to have the upload script with the login parameters just for yourself, and not for just anybody?