如何设置文件的修订号
我在我的项目中使用文件上传。我喜欢为我在数据库中上传的文件设置修订号。即,我将第一次上传 sd.doc 文件,它将保存为版本 1。下载该文件后,我将进行一些更改,并保存它应保存为版本 2。查看时,它应该显示两者版本,我应该根据版本选择文件。任何人都可以帮我解决这个问题。
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解您的问题,您需要文档的版本控制系统。
我能想到的解决方案之一是使用 Mercurial DVS。您可以创建简单的 UI 界面来与其命令行“hg”进行交互。它为您提供了巨大的潜力,很可能您在应用程序中不需要,但保存“修订”号,使其他人能够查询它,所有这一切都已经完成+您将为未来的开发提供大量选项。
但这一切都取决于您的项目要求。密切关注这一点并做出选择。
希望这有帮助。
问候。
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.