coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: grb on March 14, 2006, 03:17:16 AM

Title: Cant upload as a user
Post by: grb on March 14, 2006, 03:17:16 AM
CPG is a very nice program. I have managed to keep the file structure used with DALBUM and made it work with CPG, and get all its benefits: search, rating etc.
I have a problem with "upload" as a user though.

I run it on Windows, PHP 4.3, MySql 5.0, Apache 2.0. I have setup 2 accounts in admin group, and 1 in "registered". I have been successful in uploading a file and add it to the album, using one admin account. With the others -- I seem to get up to "upload successful", but then "can't add it to album". I have checked the settings -- and not able to find anything so far.

Although I have run apache, php for a while now for pictures, I am a total novice at php programming. From the board, I did adopt a couple of lines
http://forum.coppermine-gallery.net/index.php?topic=20422.0 to keep the thumbnails and lower resolution pictures in different directories. Any help would be appreciated.

I have setup a test account - As the doc says, I have enabled debug.

Thanks
Title: Re: Cant upload as a user
Post by: Joachim Müller on March 14, 2006, 06:42:09 AM
undo your code changes then, trying to find out if upload works as expected on a vanilla copy of coppermine.
Title: Re: Cant upload as a user
Post by: grb on March 14, 2006, 02:15:58 PM
I did. It was still failing, but helped identify the problem. For whatever reason, the script was not able to establish _res and _thm subdirectories. Once I set them up manually, it worked. Thanks
Title: Re: Cant upload as a user
Post by: Joachim Müller on March 14, 2006, 04:24:43 PM
so the issues were related to your modifications, as coppermine by default doesn't create those sub-folders. Marking as "solved"