Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Upload folders (not all pics in /albums/userpics/  (Read 3449 times)

0 Members and 1 Guest are viewing this topic.

TheGamer1701

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
    • PartyNation.tv - Always the newest Party Facs from North Germany
Upload folders (not all pics in /albums/userpics/
« on: July 24, 2005, 11:40:05 am »

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é
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload folders (not all pics in /albums/userpics/
« Reply #1 on: July 25, 2005, 10:50:43 am »

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

TheGamer1701

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
    • PartyNation.tv - Always the newest Party Facs from North Germany
Re: Upload folders (not all pics in /albums/userpics/
« Reply #2 on: July 25, 2005, 01:00:49 pm »

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...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload folders (not all pics in /albums/userpics/
« Reply #3 on: July 26, 2005, 07:38:10 am »

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?
Logged

TheGamer1701

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
    • PartyNation.tv - Always the newest Party Facs from North Germany
Re: Upload folders (not all pics in /albums/userpics/
« Reply #4 on: July 26, 2005, 01:58:55 pm »

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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Upload folders (not all pics in /albums/userpics/
« Reply #5 on: July 26, 2005, 04:24:37 pm »

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?
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload folders (not all pics in /albums/userpics/
« Reply #6 on: July 27, 2005, 09:17:57 am »

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

RatKing

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
    • Personal website
Re: Upload folders (not all pics in /albums/userpics/
« Reply #7 on: July 28, 2005, 11:14:17 am »

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 ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.