Skip to content

form-data overwriteRequestBody used with file upload doesn't inject "src" into collection. #501

@bpogy

Description

@bpogy

for File Upload, i have the following overwrite:
"overwriteRequestBody": [ { "key": "reqFile", "value": "/mytestfile.txt", "insert": true } ]

Postman expects this request to look like this:

"body": { "mode": "formdata", "formdata": [ { "key": "reqFile", "type": "file", "src": "/mytestfile.txt" } ] },

instead, generated collection has the following:
"body": { "mode": "formdata", "formdata": [ { "key": "reqFile", "type": "file" }, ] }

This presents a problem since Postman doesn't recognize the second object as valid and there is no source for file upload.

Attempts with the following config also fail to insert "src" into a collection:
"overwriteRequestBody": [ { "key": "reqFile", "value": "/mytestfile.txt", "insert": true, "overwrite": true } ]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions