Hi there
I wonder if there’s a smart approach to do the following:
Assume I have a database table full of customer and they have unique incremental IDs. Now for each customer I want to upload files… e.g. scanned correspondance, email, etc…
However I prefer not to store it in a DB but as normal files on the server. Because like that you can then easily “browse” with your file manager.
So I’ve pondered to use directory structures based on the ID and also have additionally symlinks.
E.g. the actual documents could be stored in a directory like:
/media/share/clients/1-1000/1/project name/
I thought splitting up directories into 1000 steps would be good and also seperate for each user according to the project.
client id 2014 would then be
/media/share/clients/2001-3000/2014/project name1
/media/share/clients/2001-3000/2014/project name2
/media/share/clients/2001-3000/2014/project name3
Would an file upload mechanism for that be easy to create?
In a next you might also want to split up for easier-to-navigate
e.g. you could have a list of all “open” projects like
/media/share/current projects/CLIENTNAME - PROJECT NAME -> wich would actually be a symlink to /media/share/clients/xxxx-xxxx/xxxx/project xxxx/
Once you mark the project as closed then the symlink would be deleted.
also you could setup an sorting by employee. E.g. Tom would only see his clients and not those of Jim
/media/share/Tom/CLIENTNAME - PROJECT NAME -> wich would actually be a symlink to /media/share/clients/xxxx-xxxx/xxxx/project xxxx/
I can’t figure out any smart way on how to accomplish something like that with SC. The reason I want to split up is that too many files/folders in one folder makes the whole server slow… hence this splitting up and symlinking.