I am trying to create a document manager for my winforms application. This is not a web interface.
I would like to be able to allow users to βattachβ documents to various objects (personnel, companies, work orders, tasks, parties, etc.) in my application.
After much research, I decided to use the file system to store files instead of blob in SQL. I will create a folder to store all the files, but I will store information about the document (file path, loaded, modified, version, etc.) In the parent-child relationship with the entity in the sql database.
I want users to be able to work with documents through the application so that database files and records are not synchronized. Somehow I have to protect the document folder from ordinary users, but at the same time allow the application to work with it. My initial thoughts were to install the application with a single username and password with access to the folder and use impersonation to enter the folder and work with files. From the feedback in a recent thread, I started, now I believe that this was not a good idea, and working with impersonation was a headache.
I also thought about using a web service, but some of our customers just ran the application on laptops without a Windows server. Most of them use a windows server or a citrix / windows server.
What would be the best way to configure this so that only the application processes documents?
source share