Sending files to external APIs

How do I send a file to an API as a parameter?

This is for uploading a PDF to Onshape using my web app.

If you change from json body to form data on a POST method, you’ll see a file option.

When did this happen?
I did not see this before :confused:

What if you need JSON body AND form-data to post files? Does Bubble do anything for that?