|
How can I switch the attachments storage mode from database to local disk?
To switch the storage mode you should change the
<AttachmentSaveMode> tag's value in the "web.config" file from
"
DataBase
" to "
LocalDisk
" and specify the disk folder in the
<DirectoryForStorageFile> tag as follows:
<AttachmentSaveMode>LocalDisk</AttachmentSaveMode>
<DirectoryForStorageFile>C:\ep.net attachments</DirectoryForStorageFile>
where "C:\ep.net attachments" is the example folder name.
The structure of projects' and activities' attachments folders is:
Projects' files are located in folders named Project<ProjectID> (i.e. Project1, Project2, etc.).
Activities' files are located in folders named Task<ActivityID> (i.e. Task1, Task2) under corresponding projects' folders.
|