Back to product page

Save method

Saves part to a file.


  • Basic
object.Save (Filename)
The Save(object,Filename) syntax has these parts:
objectAn expression evaluating to an object of type WebRequestUploadPart
FilenameString value. Determines location where file will be saved.


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 should search part's Headers for it (usually Content-Disposition header).