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 property contains the value of the Content-Type of each form variable which corresponds to the file in the File property.

file
String

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

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

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

inputDataB
Data

Specifies the file data to be sent.

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

inputData
String

Specifies the file data to be sent.

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

name
String

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

Constructors

public init()
public init(name: String, file: String)
public init(name: String, inputStream: InputStream?)
public init(name: String, inputData: Data)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 macOS Edition - Version 20.0 [Build 8307]