Created
September 21, 2020 01:47
-
-
Save scattered-code/8839155590a93e862365ca1f4a7cffba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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