getFile method

File getFile()

Implementation

File getFile() {
  // 获取文件
  var fileName = request.url.pathSegments.last;
  return File(fileName);
}