UploadedFile class

Reads information about a binary chunk uploaded to the server.

Constructors

UploadedFile(HttpMultipartFormData formData)

Properties

contentTransferEncoding → HeaderValue
The parsed Content-Transfer-Encoding header of the HttpMultipartFormData. This field is used to determine how to decode the data. Returns null if not present.
read-only
contentType MediaType
The parsed Content-Type header of the HttpMultipartFormData. Returns null if not present.
read-only
data → Stream<List<int>>
Returns the binary stream from formData.
read-only
filename → String
The filename associated with the data on the user's system. Returns null if not present.
read-only
formData HttpMultipartFormData
The underlying form-data item.
final
name → String
The name of the field associated with this data. Returns null if not present.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

readAsBytes() → Future<List<int>>
Reads the contents of the file into a single linear buffer. [...]
readAsString({Encoding encoding: utf8}) → Future<String>
Reads the contents of the file as String, using the given encoding.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited