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 theHttpMultipartFormData
. This field is used to determine how to decode the data. Returnsnull
if not present.no setter - contentType → MediaType
-
The parsed
Content-Type
header of theHttpMultipartFormData
. Returnsnull
if not present.no setter -
data
→ Stream<
List< int> > -
Returns the binary stream from formData.
no setter
- filename → String?
-
The filename associated with the data on the user's system.
Returns
null
if not present.no setter - formData → HttpMultipartFormData
-
The underlying
form-data
item.final - hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
final
- name → String?
-
The name of the field associated with this data.
Returns
null
if not present.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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 givenencoding
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited