namespace: Serenity.ComponentModel assembly: Serenity.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
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. |
- Source: IFilenameFormatSanitizer.cs