2016-04-17 19:51:40 +00:00
|
|
|
/// Represents a file uploaded to the server.
|
|
|
|
class FileUploadInfo {
|
|
|
|
/// The MIME type of the uploaded file.
|
|
|
|
String mimeType;
|
2018-08-11 02:08:44 +00:00
|
|
|
|
2016-04-17 19:51:40 +00:00
|
|
|
/// The name of the file field from the request.
|
|
|
|
String name;
|
2018-08-11 02:08:44 +00:00
|
|
|
|
2016-04-17 19:51:40 +00:00
|
|
|
/// The filename of the file.
|
|
|
|
String filename;
|
2018-08-11 02:08:44 +00:00
|
|
|
|
2016-04-17 19:51:40 +00:00
|
|
|
/// The bytes that make up this file.
|
|
|
|
List<int> data;
|
|
|
|
|
2018-08-11 02:08:44 +00:00
|
|
|
FileUploadInfo(
|
|
|
|
{this.mimeType, this.name, this.filename, this.data: const []}) {}
|
|
|
|
}
|