Skip to content

httpclient Content.Headers.ContentDisposition.FileName returns null when the file name has space in it #37486

@jayeshchedambath

Description

@jayeshchedambath

Describe the bug

When we receive an http response using httpclient that contains an attachment with content-disposition header and the file name in the header has space in it, the Content.Headers.ContentDisposition.FileName property returns null

To Reproduce

using .Net httpclient read an httpresponse containing a file attachment and content-disposition header, make sure the file name has space in it and file name is not wrapped inside double quoutes.

Exceptions (if any)

Further technical details

  • ASP.NET Core version:
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version:
  • Include the output of dotnet --info:
dotnet --info Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions