Skip to main content

Multi-part form-data

If you wish your API to POST multi-part form data, you can create a file that encapsulated the full form data using our helper form.

In the sidebar, under Project Settings, select Files (open it), then select Upload File. The File Upload page has a Multi-part form builder section.

Multi-part form builder with a Part Type and Part Name picker, an Add Part button and a Save multi-part form data button

Choose the type of each part you want to add by using the Part Type picker:

Part Type dropdown open showing the file and text options for the part being added

The text option allows you to pass form data along with a file. Click "Add Part" to add the parts in the section below.

Once the parts have been added, add the data you require (either by using Choose file..) or by entering the data:

Parts section with a text part named data set to variable_data=1, above the Save multi-part form data button

Now you are ready to save the file - Click "Save multi-part form data" to save the data. You can then edit a monitor to use this file data. Follow the steps on the Uploading Files page.

Raw multi-part form-data HTTP request showing form boundaries, a calendar file part, and data fields