Skip to content

Add RequestBody.fromFormData #12

Open
@paluh

Description

@paluh

Hi,

As usual - thanks for providing and maintaining this lib!

fetch supports FormData as a payload:

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#uploading_a_file

I can provide a PR but it requires additional decision - FormData is a part of purescript-web/purescript-web-xhr:

  • Do we want to extract this part into separate small lib like purescript-web/purescript-form-data?
  • Or depend on web-xhr?

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