Skip to content
New issue

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

Feature Request: Support Square Brackets in Multipart Form Data for v3 #3225

Closed
coderabbitai bot opened this issue Dec 1, 2024 · 1 comment
Closed
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 1, 2024

Description

Currently, Fiber supports square bracket notation in form data when using 'application/x-www-form-urlencoded' content type, but this functionality is not available for multipart form data. This feature request proposes adding support for square bracket notation in multipart form data for Fiber v3.

Current Behavior

  • Square bracket notation works with 'application/x-www-form-urlencoded'
  • Multipart form data does not support square bracket notation for nested structures

Desired Behavior

  • Support square bracket notation in multipart form data
  • Enable all features available in normal form data (including comma separation)
  • Maintain ability to transfer binary data
  • Allow parsing of nested structures like:
    text_prompts[0][text]: "value1"
    text_prompts[0][weight]: 0.7
    text_prompts[1][text]: "value2"
    text_prompts[1][weight]: -0.5
    

Use Cases

  1. File uploads with complex metadata
  2. Nested form structures with binary data
  3. Arrays of objects in form data

References

/cc @ReneWerner87

@efectn
Copy link
Member

efectn commented Dec 5, 2024

Closing because the issue is duplication of #3224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants