Search code examples
databaseversion-controlfileversioninfo

How to maintain version of file


I want to develop a document maintenance system. The problem I am facing is how to maintain version of a file? I have a one method: i.e. to create a history folder and if someone wants to update a file, he will do some changes and upload it again. Upon uploading the file I will keep a separate history folder for every file and add the updated version of the file. Please suggest me if anyone have solution. Thanking you in advance.


Solution

  • Why reinvent the wheel? There are plenty of capable version control systems available, most with good APIs. Think of them as databases for files.