Click or drag to resize
URLHelperGetSafeFileName Method (String, String)
Returns the safe equivalent to the given file name (with extension).

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetSafeFileName(
	string fileName,
	string siteName
)

Parameters

fileName
Type: SystemString
Original file name
siteName
Type: SystemString
Site name

Return Value

Type: String
See Also