platform/packages/body_parser/lib/src/file_upload_info.dart

18 lines
402 B
Dart
Raw Normal View History

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 []}) {}
}