Back to product page

Add method (HttpRequestFormUpload)


Adds new variable item to the collection.

Type

None

Syntax

  • Basic
object.Add VarName, VarValue, [ContentType]
The Add(object,VarName,VarValue,ContentType) syntax has these parts:
objectAn expression evaluating to an object of type HttpRequestFormUpload.
VarNameRequired. A String value. Name of the part in the multipart request.
VarValueRequired. A String value. Contents of the part, as it will be seen by the server.
ContentTypeOptional. A Variant value. String expression as content-type to be specified for this part.

Remarks

Unlike AddFile method that pastes contents of the file to the request, Add method will put there some string value. Usually you will use it to specify additional information about upload file, such as your login or password. It really depends on the server script implementation on what it expects to be received.

To see sample of this looks in the real life, you can click here.

Platforms

Windows