upload files into /userpics/subfolder automaticly upload files into /userpics/subfolder automaticly
 

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 files into /userpics/subfolder automaticly

Started by lamer, April 14, 2006, 04:17:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lamer

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

Stramm

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

lamer

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.

Nibbler

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

lamer

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

Nibbler


lamer

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

lamer

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)

Joachim Müller

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.

lamer

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.