Skip to main content

DefaultAssetNamingStrategy

The default strategy normalizes the file names to remove unwanted characters and in the case of conflicts, increments a counter suffix.

Signature

generateSourceFileName

method(ctx: RequestContext, originalFileName: string, conflictFileName?: string) => string

generatePreviewFileName

method(ctx: RequestContext, sourceFileName: string, conflictFileName?: string) => string
Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page