MultipartFormDataUpload class

Standard RFC 2388 multipart/form-data upload.

The platform will generate the boundaries and accompanying information.

Inheritance

Constructors

MultipartFormDataUpload({required String url, UploadMethod method = UploadMethod.POST, Map<String, String>? headers, String? tag, List<FileItem>? files, Map<String, String>? data, bool allowCellular = true})
Default constructor which requires either files or data to be set.

Properties

allowCellular bool
If uploads are allowed to use cellular connections Defaults to true. If false, uploads will only use wifi connections
finalinherited
data Map<String, String>?
additional data. Each entry will be sent as a form field.
final
files List<FileItem>?
files to be uploaded
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
HTTP headers.
finalinherited
method UploadMethod
HTTP method to use for upload (POST,PUT,PATCH)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
Name of the upload request (only used on Android)
finalinherited
url String
Upload link
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited