I'm thinking about to make a Doc lib, which is user related.
I thought about to create a new Tables in the DB and i don't know what would be best practise to handle medias.
My prefered solution would be:
in wwwroot to create a new folder with "usr"
for each User i would create a unique User ID. And use that for his base folder.
wwwroot/usr/29428/
And after that seperate the medias with their type.
/img (jpeg and png)
/doc (pdf)
In the db table would i get the absolute path from the data files and save them.
So the user would have a "delete my data" function in his account. And i would simply get his User ID and delete the Tables with his User ID and the Base folder. Would also try then to catch all Blogs which he created and delete/anoymous them.
Best Practise for User Data
Hi there
I'm thinking about to make a Doc lib, which is user related.
I thought about to create a new Tables in the DB and i don't know what would be best practise to handle medias.
My prefered solution would be:
in wwwroot to create a new folder with "usr"
for each User i would create a unique User ID. And use that for his base folder.
wwwroot/usr/29428/
And after that seperate the medias with their type.
/img (jpeg and png) /doc (pdf)
In the db table would i get the absolute path from the data files and save them.
So the user would have a "delete my data" function in his account. And i would simply get his User ID and delete the Tables with his User ID and the Base folder. Would also try then to catch all Blogs which he created and delete/anoymous them.
Would that make sense?
is working on a reply...