Saving thumbnails into different directory Saving thumbnails into different directory
 

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

Saving thumbnails into different directory

Started by Templarart, March 03, 2008, 02:19:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Templarart

Could someone please tell me which function of which file saves thumbnails when a file is uploaded?

I just want to save a copy of the thumbnail to a different directory so I assumed that once I found the line that saved the thumb I could just add another line saving the same thumb in a different directory.

I've been looking through the code for hours and just thought I'd ask for help.

Thanks!

Joachim Müller

include/picmgmt.inc.php contains the code you're looking for. You'll have to understand what coppermine does: the resized image gets created within the edit folder first. After successfull creation, it get's moved to the target folder. You'll have to look into the function that performs that move after the creation.

Templarart

Thank you - I'll try to figure that out!  :)

opulence

I would like thumbnails saved into a different directory as well... reason why is I want to give non-users access to view thumbnails, but by using Paver's plugin, restrict them from viewing full size pictures.  Unfortunately all someone would have to do is look at the thumbnail URL and remove thumb_ and they will be taken to the full size image without registering.  Unfortunately unlike the OP I doubt I would be able to code this myself....