-
Beta Was this translation helpful? Give feedback.
Answered by
thim81
Jul 9, 2025
Replies: 1 comment 2 replies
-
hi @jpjpjp We have just released Portman v1.32.0, where we introduce the overwrite of binary files. OpenAPI Example: openapi: 3.0.3
info:
title: 501 - File Upload API
version: 1.0.0
description: |-
A basic API spec to demonstrate file uploads.
servers:
- url: http://localhost:3000
description: Local test server
paths:
/upload:
post:
summary: Upload a file
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
reqFile:
type: string
format: binary
required:
- reqFile
responses:
'200':
description: File uploaded successfully Portman Config: {
"version": 1,
"overwrites": [
{
"openApiOperation": "POST::/upload",
"overwriteRequestBody": [
{
"key": "reqFile",
"value": "./hello.txt",
"overwrite": true
}
]
}
]
}
Postman Result : BEFORE overwrite ![]() AFTER overwrite: ![]() Let us know, if this helps to solve your reported case. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jpjpjp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @jpjpjp
We have just released Portman v1.32.0, where we introduce the overwrite of binary files.
OpenAPI Example: