FileVar Type

The file variable for the current request.

Remarks

This type describes a file that is to be posted when an upload action is performed. The type contains fields which describe this variable's name, and the filename of the file being uploaded.

Fields

ContentType
String?

This field contains the value of the Content-Type of each form variable which corresponds to the file in the File field.

File
String?

This field contains the path and filename of each file to be sent.

When the component is used as an upload client, this property must point to valid file name that will be sent to the server.

If InputData or InputStream is set, this field may instead be set to the desired filename which will be used in the request.

InputData
String

Specifies the file data to be sent.

This field may be set to the file data instead of specifying a file from disk.

If set, this field takes precedence over InputStream.

InputDataB
ByteArray?

Specifies the file data to be sent.

This field may be set to the file data instead of specifying a file from disk.

If set, this field takes precedence over InputStream.

InputStream
InputStream?

This field is set when a stream is to be used for the data of the current filevar.

Name
String?

This field contains the name of each form variable which corresponds to the file in the File field.

Constructors

public constructor()



public constructor(name: String?, file: String?)



public constructor(name: String?, inputStream: InputStream?)



public constructor(name: String?, inputData: ByteArray?)



Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks 2020 Kotlin Edition - Version 20.0 [Build 7941]