forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: lamer on April 14, 2006, 04:17:34 pm

Title: upload files into /userpics/subfolder automaticly
Post by: lamer 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
Title: Re: upload files into /userpics/subfolder automaticly
Post by: Stramm on April 14, 2006, 06:11:36 pm
if php doesn't run in savemode then coppermine's already doing that
Title: Re: upload files into /userpics/subfolder automaticly
Post by: lamer 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.
Title: Re: upload files into /userpics/subfolder automaticly
Post by: Nibbler 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.
Title: Re: upload files into /userpics/subfolder automaticly
Post by: lamer on April 14, 2006, 07:43:54 pm
it IS running in safemode and the server is also!
so there no way, i think?
Title: Re: upload files into /userpics/subfolder automaticly
Post by: Nibbler on April 14, 2006, 07:46:33 pm
Remove the line and see what happens.
Title: Re: upload files into /userpics/subfolder automaticly
Post by: lamer 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
Title: Re: upload files into /userpics/subfolder automaticly
Post by: lamer 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)
Title: Re: upload files into /userpics/subfolder automaticly
Post by: Joachim Müller 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.
Title: Re: upload files into /userpics/subfolder automaticly
Post by: lamer 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.