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
I want to send multipart/form-data request and set the contents for a text field from a file. Don't attach it as a file upload by adding a filename= to the Content-Disposition.
To just get the content part from a file, prefix the filename with the symbol <. The difference between @ and < is then that @ makes a file get attached in the post as a file upload, while the < makes a text field and just get the contents for that text field from a file.
The text was updated successfully, but these errors were encountered:
Problem to solve
I want to send multipart/form-data request and set the contents for a text field from a file.
Don't attach it as a file upload by adding a
filename=
to theContent-Disposition
.Instead of
i want
Proposal
Use
embedfile
instead offile
:Additional context and resources
Curl`s documentation https://curl.se/docs/manpage.html#-F
The text was updated successfully, but these errors were encountered: