Skip to content

File Upload fails due to added Content-Type header #213

Closed
@Dogfalo

Description

@Dogfalo

Describe the bug
File Upload fails due to Content-Type header being automatically added when multipart/form-data is expected

Fix: Remove the default content-type for POST and PUT that is added here https://github.com/alex-cory/use-http/blob/master/src/doFetchArgs.ts#L60

see here for more information: JakeChampion/fetch#505 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions