Skip to content

HTTPOptions body type does not allow FormData #90

Closed
@achingbrain

Description

@achingbrain

The HTTPOptions type extends FetchOptions which extends RequestInit from electron-fetch, which has a body type of Stream | string | Blob | Buffer | null which does not include FormData.

In js-IPFS we transform multipart requests into FormData objects in the browser, which TS then says cannot be used with the http module exported by this module, since the types in electron-fetch say FormData is not a supported body type.

Metadata

Metadata

Assignees

Labels

need/analysisNeeds further analysis before proceedingstatus/readyReady to be worked

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions