SaveToDisk Method
Call the SaveToDisk method to save the
uploaded file to disk.
ObjectName.SaveToDisk(DirPath, [Filename]) |
Parameters: | ||
DirPath as String | Specifies the folder path to save the uploaded file in. | |
Filename as String | (optional) Specifies the file name associated with the uploaded file. If the Filename parameter is empty, the uploaded file will be saved with its original name. | |
Return valueBoolean |
True if successful, False if error has occurred |
Usage example:
' This sample saves the last file in the collection with the specified by user file name
<% Set Uploader = Server.CreateObject("MailBee.Uploader")
Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes)
If (Uploader.FormElements.Count <> 0) Then
Set File = Uploader.FormFiles(Uploader.FormFiles.Count)
File.SaveToDisk "C:\Temp\", "type the new file name here"
End If %>
See Also:
FormElements Collection | FormFiles Collection | FormElement Object | FormFile Object | Uploader Object
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.