Skip to content

Cannot parse TypedFormData with parseFormDataRequest #2

@nninnnin

Description

@nninnnin

If I append some files on TypedFormData and parse it with parseFormDataRequest, it loses all the appended files and returns the object like below

TypedFormData { formData: FormData { [Symbol(state)]: [ [Object] ] } }

and If I traverse it with entries like below,

for (let [key, value] of formData.entries()) {
    console.log(key, value); // logged as  `formData [object FormData]`
}

Might be related to #1 (comment) but I'm not sure.

So I solve this issue with just send normal FormData and parse it with parseFrom~ method and it works.

Is it intended or a bug?

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