When implementing new file-based features for the Telligent Evolution platform, we strongly suggest using the CFS for file storage. The CFS provides a simple API for adding, deleting and querying files and paths.

To interact with these methods, code must first retrieve the file storage provider for a specific file store. This is done using the file store key, as in:

var myFileStore = Telligent.Evolution.Extensibility.Storage.Version1.CentralizedFileStorage.GetFileStore("FILE_STORE_KEY");

This will load the file storage provider for the "FILE_STORE_KEY" file store. There must be a corresponding enabled ICentralizedFileStore plugin or <fileStore /> node in the communityserver.config file named "FILE_STORE_KEY"; otherwise, the GetFileStore method will return null. The file management methods could then be called on the myFileStore object. Any operations preformed using the myFileStore object would be performed within the context of the file store named "FILE_STORE_KEY".

The non-null file store provides access to add, delete, list, and retrieve files.  See the file store documentation for more information.