Skip to content

Detect and generate correct content-type headers for input files #2476

@timayabi2020

Description

@timayabi2020

Currently for cmdlets that upload files, the media content-type headerhas been set to null for all file types. Therefore the API treats such requests as an application/octet-stream.
image

There needs to be a feature that will automatically detect the file type and append the correct content-type header to the request.

Related issue is here on autorest Azure/autorest.powershell#1286

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions