FormFile Object
Each file uploaded via HTML-form corresponds to FormFile object. All FormFile objects are contained in FormFiles collection.
Syntax
FormFile.property|method
Properties | |
ContentType | Returns the uploaded file's content type. |
Filename | Returns the uploaded file's name. |
Name | The name of the associated file element. |
Size | Returns the uploaded file's size. |
Value | Returns the uploaded file's content. |
ValueAsArray | Returns the uploaded file's content as array of bytes. |
Methods | |
SaveToDisk | Saves the file to disk. |
Example
This sample writes the name of the last FormFile object in the collection.<% Set Uploader = Server.CreateObject("MailBee.Uploader") Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes) If (Uploader.FormFiles.Count <> 0) Then Set FormFile = Uploader.FormFiles(Uploader.FormFiles.Count) Response.Write FormFile.Name End If %>
See Also
FormElements Collection | FormFiles Collection | FormElement Object | Uploader Object