public async Task File(HttpProcessor processor) { var form = await processor.GetForm(); var files = await processor.GetFiles(); foreach (var webFile in files) { var fileName = Path.GetFileName(webFile.Path); if (!string.IsNullOrWhiteSpace(fileName)) { System.IO.File.WriteAllBytes(fileName, webFile.Content); } } await processor.WriteRaw(string.Join("<br />", form.Select(x => $"{x.Key}: {x.Value}"))); }