We have developed one web application, here users can upload the cad file into server, each client having four different types of file typ1,type2,type3,type4. Each type having the different versions then need to show all the versions of file to client
we will show the latest versions in different color.
My question is how can I maintain these files in web server.
our Idea is by default
1. create one folder with client name (i.e client1, client2 etc...)
2. inside the client folder then we have four folders called type(type1,type2,type3,type4)
3. Inside the type1 we store the actual type1 dwfx file. (i.e Clientname_type1_v1)
if user uploads the same file type again then it should upload as Clientname_Type1_v2
How can I achive this? or let me know the perfect solution to maintain the multiple version files in web server?
Yes you are correct. so that we need to maintain the latest file version for each client, let me know the simplest way to do that
If i maintain one seperate table for each client latest version then every time need to qry the db and get the latest version then increment the values instead of that is there any other way to do this?
Mayil_Gilli
Member
151 Points
217 Posts
How to maintain the different versions of file in server?
May 04, 2012 07:00 AM|LINK
Hi,
We have developed one web application, here users can upload the cad file into server, each client having four different types of file typ1,type2,type3,type4. Each type having the different versions then need to show all the versions of file to client we will show the latest versions in different color.
My question is how can I maintain these files in web server.
our Idea is by default
1. create one folder with client name (i.e client1, client2 etc...)
2. inside the client folder then we have four folders called type(type1,type2,type3,type4)
3. Inside the type1 we store the actual type1 dwfx file. (i.e Clientname_type1_v1)
if user uploads the same file type again then it should upload as Clientname_Type1_v2
How can I achive this? or let me know the perfect solution to maintain the multiple version files in web server?
Thnaks
Gilli
ignatandrei
All-Star
137716 Points
22159 Posts
Moderator
MVP
Re: How to maintain the different versions of file in server?
May 04, 2012 08:24 AM|LINK
seems ok.
Mayil_Gilli
Member
151 Points
217 Posts
Re: How to maintain the different versions of file in server?
May 04, 2012 09:41 AM|LINK
How can I generate the version number dynamically?
ignatandrei
All-Star
137716 Points
22159 Posts
Moderator
MVP
Re: How to maintain the different versions of file in server?
May 04, 2012 09:44 AM|LINK
last version + 1
Mayil_Gilli
Member
151 Points
217 Posts
Re: How to maintain the different versions of file in server?
May 04, 2012 10:01 AM|LINK
Hi,
Yes you are correct. so that we need to maintain the latest file version for each client, let me know the simplest way to do that
If i maintain one seperate table for each client latest version then every time need to qry the db and get the latest version then increment the values instead of that is there any other way to do this?
Thanks
Gilli