Skip to content

Response Body with FormData #565

@M3cubo

Description

@M3cubo

Is it possible to send a FormData as a context.response.body from the server (Deno/Oak) to the client (web browser)?

In Firefox I receive the error: TypeError: Could not parse content as FormData and in Chrome it says: TypeError: Invalid MIME type when I try to receive the response using response.formData().

I can send a FormData from the client to the server with no problem, but I don't know if the other way around is possible.

Basically, what I want to do is send from the server an object-like which contains many blobs (images) in an all-in-one response.

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