Back to product page

Save method


Saves part to a file.

Type

Void

Syntax

  • C#
  • VB.NET
Void Save(String Filename);
The Save(Filename) syntax has these parts:
FilenameA String value. Determines location where file will be saved.

Sub Save(ByVal Filename As String)
The Save(Filename) syntax has these parts:
FilenameA String value. Determines location where file will be saved.

Remarks

Save method will save contents of uploaded part to external file. Since parts are usually not encoded in any way, this method will just copy data from the Request to a file of your choice. If you want to provide same name as of uploaded file, you can use provided Filename property which already extracted filename from part's Headers (usually Content-Disposition header).

Platforms

Windows