Hevea documentation

HttpPostedFile.SaveToLocalDisk Method (String)

Saves the file on a local disk. The remote file name will be used.

public void SaveToLocalDisk(
   string path
);

Parameters

path
path where to save the file

Exceptions

Exception Type Condition
ArgumentNullException path is null
ArgumentException path 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