Copying remote online pictures Copying remote online pictures
 

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

Copying remote online pictures

Started by Lacks, February 02, 2004, 06:51:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lacks

Aside from copyright issues, here's a question that I've been asked by one of my users. A little background first: I'm using CPG as a hosting system, like PictureStage and PhotoIsland, and the people using it (it's in beta, while I'm sorting out little gimmicks like these) are members of a news-related website where one is allowed to add comments to news stories. Said comments can include links and, of course, pictures.
Pictures are mostly deep-linked from their source, resulting in huge bandwidth-load on the server that hosts the picture in question. To prevent this, I've had the request of adding a 'remote upload' to the CPG, allowing for a remote image to be copied to the user's CPG album.

The remote copying utility, I have, working flawlessly outside of CPG... in order to integrate it, I need to:

- create a thumbnail and preview image
- update the database

The second part is what puzzles me most... we're not talking about batch uploads, or FTP, but placing an image (either by means of an intermediate location or directly) into the user's album folder, and updating the database accordingly.

Is there an easy way to achieve an action like this?