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-premises 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.

Service registration

This module does not need to be registered with the IoC container. It will be registered by default if no other file storage module has been registered explicitly.

Configuration settings

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 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 application root, or it can be a fully qualified path name. UNC network shares are supported as well. Defaults to "App_Data\Media" if not specified.