Skip to content

Parameters aren't properly serialized on multipart forms #200

Closed
@kiafaldorius

Description

@kiafaldorius

If a nested object is passed as data in the $.ajaxForm/$.ajaxSubmit call, it currently doesn't properly serialize it. Current version raises an exception, a few versions previous it sent the object as "[object Object]".

For example:

{a: {'b': 5}, c: "ok"}

should get serialized as

a[b]=5&c=ok

previous versions sent this to the server

a=[object Object]&c=ok

current version on master throws an Exception (firefox 12.0)

Component returned failure code: 0x80460001 (NS_ERROR_CANNOT_CONVERT_DATA) [nsIDOMFormData.append]

Will submit a pull request to fix this soon once I setup a basic test case.

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