Hevea documentation

HttpPostedFile.SaveToLocalDisk Method (String, String)

Saves the file on a local disk.

public void SaveToLocalDisk(
   string path,
   string fileName
);

Parameters

path
path where to save the file
fileName
file name

Exceptions

Exception Type Condition
ArgumentNullException path or fileName is null
ArgumentException path of fileName is empty
IOException the file could not be saved
UnauthorizedAccessException Insufficient provileges to create the file
DirectoryNotFoundException the path is not valid
PathTooLongException the full file name (path + fileName) is too long

See Also

HttpPostedFile Class | Hevea.Core.Http Namespace | HttpPostedFile.SaveToLocalDisk Overload List