ContentDisposition Property

Object: SoftArtisans.SAFile
Syntax: ContentDisposition
Type: String
Read/Write: Read Only
Description:

This property contains the MIME Content Disposition of the data, which should always be "form-data" when using a browser that supports RFC1867 uploads.

Use this property to determine whether the browser supports RFC1867.

Even if there are multiple files in an upload, each file's Content Disposition should still be "form-data".

To examine the content disposition of multiple files in a single upload, there is an equivalent property for each file object, i.e., fileUpload.Form("File1").ContentDisposition.

See also the ContentDisposition propertyfor the SAFileUp object.

Examples:
ASP <% If fileUpload.Form("File1").ContentDisposition <> "form-data" Then %>
Your first file upload did not succeed, most likely because your
browser does not support upload via this mechanism.
<% End If %>
C# if ((SaFile)fileUpload.Form["File1"]).ContentDisposition !=
"form-data")
{
results.Append("Your first file upload did not succeed, most " +
"likely because your browser does not support upload via " +
"this mechanism.");
}
VB.NET If (CType(fileUpload.Form("File1"), SaFile).ContentDisposition <> _    "form-data") Then
results.Append("Your first file upload did not succeed, " + _
"most likely because your browser does not support upload " + _
"viathis mechanism.")
End If

Copyright © 2010 SoftArtisans, Inc. All rights reserved.