IFilenameFormatSanitizer interface

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Abstraction for sanitizing values of replacement placeholders in a file name format string like |X|/|Y|. Sanitizer is called for each of the placeholders and for the result. Can be implemented by custom subclasses of upload editor attributes or registered in DI.

public interface IFilenameFormatSanitizer

Members

name description
SanitizePlaceholder(…) Sanitizes the placeholder value
SanitizeResult(…) Sanitizes the formatting result, usually by replacing double slashes resulting from an empty replacement value with /_/ to keep expected directory structure.

See Also