Support Portal
Language
Home > Knowledge Base > General Questions > How can I switch the attachments storage mode from database to local disk?
Information
Article ID 20
Created On 3/19/2008
Modified 2/11/2009
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.