Module to change filename of uploaded items

jamgold
jamgold's picture

Joined: 2002-11-01
Posts: 79
Posted: Mon, 2006-05-29 17:10

Hi

after searching the forums for something related I decided to post this question:

how would I best go about writing a module that changes the filename of uploaded items? The default is to use the uploaded filename, but that annoys me, since my digital camera recycles the counter every so often, so I end up with different photos with the same filename on disk. I know that this doesn't really matter since the photos are all in subdirectories, but ... I also want to learn how to write modules for g2.

Problem is, I don't even know where to start. I am sifting through the source right now, but don't want to just "hack" the code that moves the uploaded items into place, I want it to be g2 conform.

Any pointers?

 
jamgold
jamgold's picture

Joined: 2002-11-01
Posts: 79
Posted: Mon, 2006-05-29 17:18

Great, I just saw that I waffled about this before when G2 was still in beta ... http://gallery.menalto.com/node/3823 ... which just helps to clarify what I am trying to accomplish (in regards to an old G1 feature).