Fix multipart/form-data codegen missing --form flag for file fields#808
Merged
KhudaDad414 merged 1 commit intopostmanlabs:developfrom Feb 3, 2026
Conversation
KhudaDad414
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the handling and testing of multipart/form-data fields in the Postman CLI code generation logic. The main focus is on improving how file fields are represented in generated CLI snippets and ensuring that both text and file fields are correctly converted.
Multipart/form-data handling improvements:
addFormDataBodyincodegens/postman-cli/lib/index.jsto generate CLI snippets using the correct--formflag format for file uploads, removing unnecessary inner double quotes around file paths.Testing enhancements:
codegens/postman-cli/test/unit/convert.test.jsto expect the new--formflag format and verify the absence of inner double quotes for file paths.--formflag, and that file paths are formatted correctly without extra quotes.