Skip to content

ControllerMethodArgs does not support FormData #45

@Thesephi

Description

@Thesephi

When retrieving request body with ControllerMethodArgs("body"), we can get the value as parsed from the body json payload.

But if the request comes from an HTML <form method="post"> element, the content-type is then likely application/x-www-form-urlencoded or multipart/form-data. Currently there's no supported way to conveniently extract data from the request for this scenario.

Of course we can do sth like await ctx.request.body.formData(), but would be nice if this library supports a syntactic sugar here as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions