Skip to content

ability to customize "filename" attribute on form-data body parts using text fields #8595

Open
@bitcoder

Description

Is your feature request related to a problem? Please describe.
Kind of. Each part of multipart should be able to customize the filename.
This is also related to the problem that Postman doesnt support replacing variables in file-based content as mentioned in #8594

Describe the solution you'd like
Postman should provide another column so that the user can customize the filename; this could apply to text-based entries and also to file-based entries, where in the latter it would replace the name coming from the chosen file.
image

Describe alternatives you've considered
Nothing.

Additional context
Several servers/HTTP libraries look at the multipart content and look at the presence of the "filename" attribute to make decisions.
Without having this attribute, the app cannot infer that it's a file.
Currently, Postman fills out the "name" of the variable but it doesn't fill out the "filename" if text-based value is provided as it doesn't know what to put there. In the end, we need that Postman generates a multipart request as follows.. even if you use text-based strings.

image

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions