files method

Future<Map<String, UploadedFile>> files()

Returns all uploaded files parsed from the request.

The returned map is a copy of the internal file registry.

Example:

final files = await form.files();
print(files.keys);

Implementation

Future<Map<String, UploadedFile>> files() async {
  await _ensureParsed();
  return Map<String, UploadedFile>.from(_files);
}