ContentType Property


Returns the uploaded file's content-type.


Value Type: String
Parameters: None 
Remarks: This property is read-only

Usage example:

' This sample writes the content-types of all selected files

<% Set Uploader = Server.CreateObject("MailBee.Uploader")
Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes)
For Each File in Uploader.FormFiles
   Response.Write File.ContentType
   Response.Write ";"
Next %>

See Also:

FormElements Collection | FormFiles Collection | FormElement Object | FormFile Object | Uploader Object


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.