FileUploadTask class

Uploads a local file to CAWS in the background.

Created and started by FileStorageReference.upload. Await onComplete to get the CarpFileResponse of the stored file.

Inheritance

Properties

file ↔ File
The file to upload.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
metadata ↔ Map<String, String>
Metadata for the file.
getter/setter pair
name → String
The file name, i.e. the last segment of the file path.
no setter
onComplete → Future<CarpFileResponse>
Completes with the CarpFileResponse when the upload succeeds.
no setter
reference ↔ FileStorageReference
The file reference this task works on.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → TaskStateType
no setterinherited

Methods

cancel() → void
Cancels the upload task and completes onComplete with an error.
override
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