Folks-

I need to develop a module that lets me create a 'versioned file upload node'. So somebody can upload a file to this node type, along with a version number and some meta data (title, description, etc.) and it will store it. Then they upload a second one, with a new version number, and it stores it as well, and displays 'current version: XXX; previous version YYY' to the user.

I'm a good PHP programmer, but I'm really at a loss as to where to start... should I modify the story node type? Or use flexinodes?

Also, is there any interest in this beyond me? I'd be happy to release it to the community if I can get it working well and other people want it.

D

Comments

alynner’s picture

I would certainly use it.

I would probably look into how the upload module works because it seems to automatically change the name of the uploaded file if there is already one with that name. So you could figure out how it does that and use your own naming convention.

hope this helps
alynner

killes@www.drop.org’s picture

the standard upload module already has file versioning.

dordal’s picture

The standard upload module has versioning?? How do you use it? Check the 'force new revision' checkbox when you upload a new file?