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., upl.FormEx("FILE1").ContentDisposition.

Example:

<% If upl.ContentDisposition <> "form-data" Then %>
      Your upload did not succeed, most likely because your browser
      does not support upload via this mechanism.
<br>

 

Previous Page Next Page