platform/packages/body_parser/lib/src/file_upload_info.dart
Tobe O a13d02069e Add 'packages/body_parser/' from commit 'b4cc359637f6bc510097e97c92f17db072e6e09b'
git-subtree-dir: packages/body_parser
git-subtree-mainline: 9c36a7e981
git-subtree-split: b4cc359637
2020-02-15 18:22:28 -05:00

17 lines
402 B
Dart

/// Represents a file uploaded to the server.
class FileUploadInfo {
/// The MIME type of the uploaded file.
String mimeType;
/// The name of the file field from the request.
String name;
/// The filename of the file.
String filename;
/// The bytes that make up this file.
List<int> data;
FileUploadInfo(
{this.mimeType, this.name, this.filename, this.data: const []}) {}
}