Local File System

This is the default file store implementation, included in the core package. The Local File System module saves files to a folder structure on the local machine, and is therefore not suitable for most cloud based distributed hosting environments. On-premise load-balanced environments may be able to use the Local File System module with a UNC network path.

Installation

The Local File System module is part of the Redakt Core and does not need to be installed separately. The module will be registered by default if no other file store module has been registered.

Configuration

The Local File System file store is configured through the appsettings.json file. Any configuration that is not included in the appsettings.json file will be set to its following default values.

{
    "Redakt": {
        "FileStore": {
            "FileSystem": {
                "RootPath": "App_Data\\Media"
            }
        }
    }
}

Root Path

Sets the path to the file storage root directory. This can be a relative path off the website root, or it can be a fully qualified path name. UNC network shares are supported as well. Defaults to "App_Data\Media" if not set.