MultiPartFormEncoding (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (1 revision) |
(No difference)
|
Revision as of 01:17, 15 June 2011
<section begin=dpl_desc/><section end=dpl_desc/>
This property sets and returns a Boolean enumeration
(True
or False
)
that indicates whether Multipart Form encoding
support is on or off.
If on (True
), an HTTPRequest object can
send file data to a web site
from either a Longstring or a Stringlist.
The Post of file data using this encoding support emulates an HTML form that uses enctype="multipart/form-data" and a type="file" input field.
Syntax
%curr = %httpreq:MultiPartFormEncoding %httpreq:MultiPartFormEncoding = newvalue
Syntax terms
%curr | The value (True or False ) of %httpreq's MultiPartFormEncoding property.
|
---|---|
%httpreq | A previously defined and instantiated HTTPRequest object. |
newvalue | The Boolean enumeration value (True or False ) to assign to %httpreq's MultiPartFormEncoding property.
|
Usage notes
- To enable file-based form uploads:
- MultiPartFormEncoding must be set to True before any AddField statements are issued, or the request is cancelled.
- For an example of code that uses the MultiPartFormEncoding property, see this AddField example.
- For information about Enumerations, see "Enumerations".