album/userpics/100020/pic.jpg album/userpics/100020/pic.jpg
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

album/userpics/100020/pic.jpg

Started by aquafen, March 30, 2004, 02:52:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aquafen

When my users upload pictures, the pictures uploaded in album/userpics/ How i can do next, for all users creating unique folder album/userpics/100000/ - here are user pictures

Example: for Aquafen - folder is 100000
for Gringo  - folder 100001
fir Alex - folder 100002

Im so sorry, i very bad speak English! (im russian)
Help me please!

Casper

This is normal, the users pics are uploaded into /userpics, or /userpics/1000?.  Coppermine uses these folders to keep track with the database. These pics can be put in any album, using the edit pics.
You must leave these folders alone, and do not create in advance.  
If you want to create folders to ftp pictures, make your folders in the /albums folder, NOT in the albums/userpics folder.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Nibbler

Subfolders will not be created if SILLY_SAFE_MODE is set to 1 in your config.inc.php.

aquafen

I dont have conf.inc.php file, i have only config.php!

Joachim Müller

Trust us, you do have a file named config.inc.php on your webserver, it's in the include folder within coppermine and has been created during coppermine install.
If you don't have silly safe mode, you won't have to bother anyway.

GauGau

shoobeedoodoo

Is there anyway for the uploaded pictures to be put in separate folders for different users?

Thanks!

-Stephen

Joachim Müller

they are in different folders (one folder for each user) by default. Like Nibbler pointed out: if you have silly_safe_mode enabled, they will not be in separate folders.
There have been requests before to change the way folders are being created and pics are stored within userpics (i.e. on http upload), but nobody has come up with a working hack that really made sense. Why bother? The database keeps track of the pic location, you won't have to.

GauGau

aquafen

I was change define('SILLY_SAFE_MODE', 0);, but i dont see changes, pictures uploaded into albums/userpics/  without subfolder!