如何获取上载文件的修订号 [英] How to get the revision number for the uploaded file

查看:68
本文介绍了如何获取上载文件的修订号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在我的项目中使用文件上传.我想为我要上传到数据库中的文件设置修订号.即我将第一次上传sd.doc文件,将其保存为版本1.下载该文件后,我将进行一些更改,并将其保存为版本2.在查看时,应同时显示两者版本,我应该根据版本选择文件.谁能帮我解决这个问题.

在此先感谢您.

Hi,

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.

推荐答案

每次保存文件时,都需要将修订号设置为新的修订号.
因此,请参见此处 [ ^ ].
You need to set the revision number to a new one everytime a file is saved.
So, see here[^].


这篇关于如何获取上载文件的修订号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆