From 43e892f9b0bf0d83f9e1e4360a535b88d39d573d Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Fri, 27 Dec 2024 16:50:12 +0530 Subject: [PATCH] fix: cli multipart --- packages/bruno-cli/src/runner/prepare-request.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/bruno-cli/src/runner/prepare-request.js b/packages/bruno-cli/src/runner/prepare-request.js index 21cf17bd..0ed86676 100644 --- a/packages/bruno-cli/src/runner/prepare-request.js +++ b/packages/bruno-cli/src/runner/prepare-request.js @@ -136,8 +136,7 @@ const prepareRequest = (item = {}, collection = {}) => { if (request.body.mode === 'multipartForm') { axiosRequest.headers['content-type'] = 'multipart/form-data'; const enabledParams = filter(request.body.multipartForm, (p) => p.enabled); - const collectionPath = process.cwd(); - axiosRequest.data = createFormData(enabledParams, collectionPath); + axiosRequest.data = enabledParams; } if (request.body.mode === 'graphql') {