Is it possible to use something like Blob in K6, in order to have form data elements with different content types? i.e one is a file (easy enough), another is json. Each would have their own respective content types.
Something like:
const fd = new FormData();
fd.append('bookInfo', new Blob([JSON.stringify({
name: "Book",
quantity: "12"
})], {
type: "application/json"
}));
fd.append('testFile', http.file(someFile, 'somefil.txt', 'application/octet-stream'));