You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Fiber supports square bracket notation in form data when using 'application/x-www-form-urlencoded' content type, but this feature is not available for multipart form data. This limits the ability to handle complex nested data structures in multipart form requests.
Current Behavior
Square bracket notation works with 'application/x-www-form-urlencoded'
Multipart form data does not support square bracket notation for nested structures
No support for comma-separated values in multipart form data
Desired Behavior
Support square bracket notation in multipart form data (e.g., field[0][name], field[1][name])
Support comma-separated values in multipart form data fields
Maintain the ability to transfer binary data alongside structured form data
Use Case Example
text_prompts[0][text]: "A beautiful sunset over the ocean"
text_prompts[0][weight]: 0.7
text_prompts[1][text]: "mountain range covered in snow"
text_prompts[1][weight]: -0.5
init_image: <binary_data>
This enhancement would provide consistency between form-urlencoded and multipart form data handling, making it easier for developers to work with complex data structures while maintaining the ability to upload files.
The text was updated successfully, but these errors were encountered:
Description
Currently, Fiber supports square bracket notation in form data when using 'application/x-www-form-urlencoded' content type, but this feature is not available for multipart form data. This limits the ability to handle complex nested data structures in multipart form requests.
Current Behavior
Desired Behavior
field[0][name]
,field[1][name]
)Use Case Example
References
fiber/ctx.go
Lines 394 to 408 in 8c84b0f
fiber/ctx.go
Lines 422 to 427 in 8c84b0f
Additional Notes
This enhancement would provide consistency between form-urlencoded and multipart form data handling, making it easier for developers to work with complex data structures while maintaining the ability to upload files.
The text was updated successfully, but these errors were encountered: