UploadPathHelper.CheckFileNameSecurity method
Checks file name security, e.g. it is a relative file (not rooted) that does not contain ".." etc.
public static void CheckFileNameSecurity(string path)
| parameter | description |
|---|---|
| path | The file path to check. |
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException | path is not a secure relative file. |
See Also
- class UploadPathHelper