UploadedFile class

A single file received through a multipart/form-data request.

Constructors

UploadedFile({required String filename, required String contentType, required List<int> bytes})

Properties

bytes List<int>
Raw file contents.
final
contentType String
MIME type declared in the part headers (e.g. image/png).
final
filename String
Original file name as reported by the client.
final
hashCode int
The hash code for this object.
no setterinherited
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
save(String path) → void
Writes the file to path synchronously.
saveAsync(String path) Future<void>
Writes the file to path asynchronously.
toString() String
A string representation of this object.
inherited

Operators

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