From 729e818457c67c58477100f59bfb0e7f16ccadf4 Mon Sep 17 00:00:00 2001 From: francesco barbera Date: Wed, 16 Feb 2022 15:44:32 +0000 Subject: [PATCH] docs: add an example for complex object in multipart upload --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 83a2fa6..493b7f8 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ Anything you can do with superagent, you can do with supertest - for example mul request(app) .post('/') .field('name', 'my awesome avatar') + .field('complex_object', '{"attribute": "value"}', {contentType: 'application/json'}) .attach('avatar', 'test/fixtures/avatar.jpg') ... ```