Abdul Khadhar
Abdul Khadhar

Reputation: 19

How to set the revision Number to a file

I am using the file upload in my project. I like to set the revision number for the file which I am uploading in the database. i.e. I will upload a sd.doc file for first time it will be saved as version 1. After I am downloading that file I will make some changes and I will save that it should be saved as version 2. While viewing it should show both the version and I should choose the file based on the version. Can any one help me to solve this issue.

Thanks in Advance.

Upvotes: 0

Views: 146

Answers (1)

Tigran
Tigran

Reputation: 62256

If I right understand your problem, you need versioning system for docs. One of the solutions that I can think off, is using of Mercurial DVS. You can create simple UI interafce to interact with it's command line "hg". It provides to you a huge potential, that most probabbly you will no need in your app, but saving "revision" number, enable others to query it, all this is already done + you will given huge amount of options for future development.

But all depends on your project requirements. Keep an eye on that and make a choice.

Hope this helps.

Regards.

Upvotes: 1

Related Questions