UploadFile.fromPath constructor
const
UploadFile.fromPath({})
A file on disk. Not available on web — use UploadFile.fromBytes there.
Implementation
const UploadFile.fromPath({
required String field,
required String path,
String? filename,
String? contentType,
}) : this._(
field: field,
path: path,
filename: filename,
contentType: contentType,
);