Upload folders (not all pics in /albums/userpics/ Upload folders (not all pics in /albums/userpics/
 

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

Upload folders (not all pics in /albums/userpics/

Started by TheGamer1701, July 24, 2005, 11:40:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheGamer1701

Hello,

I'm using coppermine for a few months now and everything is fine except one thing:

All uploaded pictures go to the folder "/cpg_root/albums/userpics/" and that's it.
but I want to have a single folder for each album, e.g. like this:
"/cpg_root/albums/userpics/23.07.05_Party/"

How can I change that?
And do I have to reinstall cpg? Editing the database to change the folder entry for the pictures wouldn't be a problem, but I can't find a way to activate the folder option.

Any help on this would be greatly apreciated.


Facts:
CPG: 1.3.2 (more info: http://www.partynation.tv/coppermine/versioncheck.php)
PostNuke: 0.726 Phönix (using pnCPG 2.8)
I also added a watermark hack and a link to my themev (fruity), but I don't think that one will make any problems.


Thx,
André

Joachim Müller

You (as coppermine admin) should use FTP-upload plus batch-add instead of http uploads. Read the docs for details.

TheGamer1701

Hey,


I have about 8 aktive Users who are uploading pictures on a regular basis via the XP-Tool.
I don't like the idea of giving them ftp access to the gallery...


There should be another way...

Joachim Müller

like I said: you should use FTP-uploads, but nobody else. Of course you mustn't give FTP privileges to anybody else.
Coppermine just works that way: user uploads go into userpics. No workaround. After all, the application keeps track of the files, the user doesn't have to, so why be concerned where the files actually reside?

TheGamer1701

Well, relativly simple:

I don't like filenames like this one here:
thumb_IMG00066%7E5.JPG

:-)
And it takes really a lot of time to load the folder with an ftp program.
Even with ssh access it takes some time to safe the folder contents to a textfile...


But I'll just give my trusted persons ftp access to the albums folder...
that will do it, I hope.
thx

kegobeer

If a user uploads via FTP, the only way to get them in to the gallery is via batch add, which is an admin function.  Do you trust your users enough to be gallery admins?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

do not grant anybody FTP access nor admin access to coppermine just for the sake of batch-uploading. Severe security impact. Don't!

RatKing

I think what is being asked for here is users have their own upload folder or when an album is created a folder is made for that album, users upload to the user dir and when the picture goes into an album the image is moved into it by CPG. That should make a nice looking clean upload dir.

It would do somethign along these lines.


User doesCPG does
Create catagoryCreate subdir in albums folder
Create album (not in cat.)Create subdir in albums folder
Create album (in cat.)Creates a subdir in cat. dir
User uploads fileFile goes into user upload dir
User adds uploaded file to albumFile gets moved to album dir

Make a backup of the album dir and you have all files. Extract a single dir from your backup and you have a complete album in one go. This is not a needed option but one that I my self have found a missing option in CPG. I know this will mean quite a bit of changing here and there but I am quite sure that the one that does this will be loved by a lot of CPG users ;)