UploadFailed class final
The upload did not happen: a refusal (422 too large/wrong type, 403 not resolvable/writable/disabled), a transport failure, or a host transport that has not implemented FilamentUploadTransport. message is the user-facing reason when one is known.
- Inheritance
-
- Object
- UploadResult
- UploadFailed
Constructors
- UploadFailed(String? message, {int? statusCode})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status the server answered with, mirroring
FilamentTransportException.statusCode. Null when there was no response to read one from — a transport throw (offline, DNS) or a host transport that never implemented FilamentUploadTransport — which is exactly the set of failures a form field cannot blame on this one field, soResourceFormProvider.uploadFile()routes anything but a literal422to the form banner rather than the field.final
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