Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var boundary = RequestHelpers.GetBoundary(_httpContextAccessor.HttpContext.Request.ContentType);
var reader = new MultipartReader(boundary, _httpContextAccessor.HttpContext.Request.Body);
var section = await reader.ReadNextSectionAsync();
var fileSection = section.AsFileSection();
var originalFilename = fileSection.FileName;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment