CommonGetVerifiedFilePath Method (String, IEnumerableString, ActionException, DictionaryString, Object)

Verifies a stored file path without changing it against the supplied allowed roots.

Namespace:  IAS
Assembly:  Common (in Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static string GetVerifiedFilePath(
	string storedFileValue,
	IEnumerable<string> allowedRoots,
	Action<Exception, Dictionary<string, Object>> reportError = null
)

Parameters

storedFileValue
Type: SystemString
The stored full path to the file.
allowedRoots
Type: System.Collections.GenericIEnumerableString
The trusted root directories the file may reside under.
reportError (Optional)
Type: SystemActionException, DictionaryString, Object
Receives each rejection with the requested path. Defaults to Raygun.

Return Value

Type: String
The stored value, unchanged.
See Also