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
When setting up a multipart request, Thunder Client automatically selects the content-type of the file part. The auto-assigned content-type is not always the desired content-type of the API spec, therefore our request will always result in a 400 Bad Request, because the content-type is wrong.
Please allow a way for the user to set the content type for a file part or text part of a multi-part request.
Form Fields: user should be able to set because this could application/json, application/xml, text/plain, blank or many other things. Files: user should be able to set because this could be blank, application/pdf, application/octet-stream, application/vnd.ms-excel, text/csv or many other things.
Example: Multipart Form Data: PDF file content-type automatically set. No manual way for user to set content-type for a file.
Why is this a problem: API spec for the pdf file wants "application/octet-stream" for the content-type. Thunder Client automatically sets the content-type to "application/pdf". No way to manually set the content-type. Results in 400 bad request because content-type does not match API spec and there is no way to change in Thunder Client.
Versions
ThunderClient v.2.17.8
Visual Studio Code 1.86.2
OS: Windows_NYx64 10.0.22621
Steps to reproduce 1
Create POST request
Go to Body > Form > Form Fields
Enter field name and value <---User cannot change content-type of the file
Steps to reproduce 2
Create POST request
Go to Body > Form
Select Files check box
Go to Files section
Enter field name and value <---User cannot change content-type of the file
For reference this is how it works in Postman:
Free Version - can't move to paid until this is a feature. It's a show stopper for us.
The text was updated successfully, but these errors were encountered:
Thanks! This is working great. Also impressed that the content-types are importing from Postman collections.
I was worried that without a separate field a user might not be able to distinguish how to get their content-type applied, but I see you have linked a how-to on the screen, so that's nice.
When setting up a multipart request, Thunder Client automatically selects the content-type of the file part. The auto-assigned content-type is not always the desired content-type of the API spec, therefore our request will always result in a 400 Bad Request, because the content-type is wrong.
Please allow a way for the user to set the content type for a file part or text part of a multi-part request.
Form Fields: user should be able to set because this could application/json, application/xml, text/plain, blank or many other things.
Files: user should be able to set because this could be blank, application/pdf, application/octet-stream, application/vnd.ms-excel, text/csv or many other things.
Example: Multipart Form Data: PDF file content-type automatically set. No manual way for user to set content-type for a file.
Why is this a problem: API spec for the pdf file wants "application/octet-stream" for the content-type. Thunder Client automatically sets the content-type to "application/pdf". No way to manually set the content-type. Results in 400 bad request because content-type does not match API spec and there is no way to change in Thunder Client.
Versions
ThunderClient v.2.17.8
Visual Studio Code 1.86.2
OS: Windows_NYx64 10.0.22621
Steps to reproduce 1
Steps to reproduce 2
For reference this is how it works in Postman:
Free Version - can't move to paid until this is a feature. It's a show stopper for us.
The text was updated successfully, but these errors were encountered: