ContentDisposition Property

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

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

Use this parameter to determine if the browser supports this upload mechanism.

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

If there is more than one file being uploaded in a single page, only the first one is displayed.

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.

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

Copyright © 2010 SoftArtisans, Inc. All rights reserved.