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 files into /userpics/subfolder automaticly  (Read 3341 times)

0 Members and 1 Guest are viewing this topic.

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
upload files into /userpics/subfolder automaticly
« on: April 14, 2006, 04:17:34 pm »

Hi there,

another problem today:
is it possible to let coppermine save the uploaded files (html-interface,xp-publisher) to a seperate subfolder for each person or album?
so you have userpics/"username"/ or userpics/"albumname"/ or, best would be, userpics/"categorie"/"album"/"user"/
i ask myself, if that wouldn't be very practicable for the next release?

hundrets of files in the userpics-folder aren't very comfortable.

thanks
« Last Edit: April 16, 2006, 08:02:25 pm by GauGau »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: upload files into /userpics/subfolder automaticly
« Reply #1 on: April 14, 2006, 06:11:36 pm »

if php doesn't run in savemode then coppermine's already doing that

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: upload files into /userpics/subfolder automaticly
« Reply #2 on: April 14, 2006, 07:39:16 pm »

thank you for your answer,

it actually is running in safemode, an neither the one nor the other provider has save mode on (the one wants me to pay for it, the other one doesn't want to activate it, for what reason i don't know.

i'm searching for another way to activate it, so lets say i make the subfolders for every person an let the php skript put it into the right folder for every user-id.
Logged

Nibbler

  • Guest
Re: upload files into /userpics/subfolder automaticly
« Reply #3 on: April 14, 2006, 07:41:04 pm »

Remove the SILLY_SAFE_MODE define from include/config.inc.php if you are not in safe mode.
Logged

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: upload files into /userpics/subfolder automaticly
« Reply #4 on: April 14, 2006, 07:43:54 pm »

it IS running in safemode and the server is also!
so there no way, i think?
Logged

Nibbler

  • Guest
Re: upload files into /userpics/subfolder automaticly
« Reply #5 on: April 14, 2006, 07:46:33 pm »

Remove the line and see what happens.
Logged

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: upload files into /userpics/subfolder automaticly
« Reply #6 on: April 14, 2006, 07:58:30 pm »

the folder 10001 is created, but it says the file couldn't be added (web interface). 10001 is 777, so that's not the problem
Logged

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: upload files into /userpics/subfolder automaticly
« Reply #7 on: April 15, 2006, 06:47:09 pm »

is there nothing i can do without safemode beeing off?
thats really sad  :-\

maybe there is another solution (that: http://forum.coppermine-gallery.net/index.php?topic=28374.0 would help also)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: upload files into /userpics/subfolder automaticly
« Reply #8 on: April 16, 2006, 01:18:19 am »

safe mode sucks - the whole point of safe mode is that the user can't do everything. Coppermine is built to offer a workaround (no folders being created for different users on upload, but all files go into userpics folder). This is not the daefualt behaviour of coppermine, but a workaround for people on cheap webspace like you seem to be. Nothing to be changed for future versions, as coppermine's default behaviour is just fine. If this bothers you, get better webhosting.
Logged

lamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: upload files into /userpics/subfolder automaticly
« Reply #9 on: April 16, 2006, 05:41:04 pm »

you are partially right, the one webspace is really stupid, safe_mode=off will cost 25€.
but the other, all-inkl, is know as one of the best in germany, and they won't enable it at all (for safety reasons).
so it's ok if there's no way, thank you for your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.