CommonGetVerifiedFilePath Method

Overload List
  NameDescription
Public methodStatic memberGetVerifiedFilePath(String)
Verifies a stored file path without changing it. The value must be a fully-qualified path (drive "X:\" or UNC "\\server\share") with a file name, no invalid characters, and no "." or ".." segments, and it must reside under one of the roots listed in the "AllowedFileRoots" app setting (semicolon-separated). Throws when verification fails.
Public methodStatic memberGetVerifiedFilePath(String, IEnumerableString, ActionException, DictionaryString, Object)
Verifies a stored file path without changing it against the supplied allowed roots.
Top
See Also