We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the Sendanywhere API, the following query parameters:
{ files: [{ name: 'a.txt', size: 1 }, { name: 'b.txt', size: 2 }] }
should be encoded like so:
file[0][name]=a.txt&file[0][size]=1&file[1][name]=b.txt&file[1][size]=2
This sort of format is currently the default when using $.param().
$.param()
It is almost achieved by arrayFormat: 'index' but it incorrectly serialized the objects as [object Object].
arrayFormat: 'index'
[object Object]
// @sindresorhus
The text was updated successfully, but these errors were encountered:
I intentionally didn't want to open that can of worms (and potential security issues). For your needs, you'll have to use https://github.com/ljharb/qs
Sorry, something went wrong.
Documented here: https://github.com/sindresorhus/query-string#nesting
No branches or pull requests
When using the Sendanywhere API, the following query parameters:
should be encoded like so:
This sort of format is currently the default when using
$.param()
.It is almost achieved by
arrayFormat: 'index'
but it incorrectly serialized the objects as[object Object]
.Helpful resources
// @sindresorhus
The text was updated successfully, but these errors were encountered: