RequestFile class

Constructors

RequestFile({required String filename, required String filetype, required MimeMultipart stream})

Properties

bytes Future<Uint8List>
get file content in bytes
no setter
extension String
Get file extension eg. png, jpeg, pdf
no setter
filename String
final
filetype String
final
getClientMimeType String
Returns the file mime type. The client mime type is extracted from the request from which the file was uploaded, so it should not be considered as a safe value.
no setter
getClientOriginalExtension String
Returns the original file extension. It is extracted from the original file name that was uploaded. This should not be considered as a safe value to use for a file name on your servers.
no setter
getClientOriginalName String
Returns the original file name. It is extracted from the request from which the file has been uploaded. This should not be considered as a safe value to use for a file name on your servers.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Future<num>
get file size in kilobytes
no setter
stream → MimeMultipart
final

Methods

move({required String path, required String filename}) Future<String>
this function will upload the file in your project custom path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
store({required String path, required String filename}) Future<String>
this function will store the file in your project storage folder
toString() String
A string representation of this object.
inherited

Operators

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