Skip to content
Discussion options

You must be logged in to vote

You're passing 'a,b,c' in the same category Form "field". You would need to pass the three letter in three distinct form fields, all of them named 'category'. For example, the following cURL should work

$ curl -X 'POST' \
>   'http://127.0.0.1:8000/' \
>   -H 'accept: application/json' \
>   -H 'Content-Type: multipart/form-data' \
>   -F 'category=a' \
>   -F 'category=b' \
>   -F 'category=c' \
>   -F 'file=@check.html;type=text/html'

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem question-migrate
3 participants
Converted from issue

This discussion was converted from issue #2960 on February 27, 2023 22:59.