postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 841 forks source link

sending request with file sends an empty request #13200

Closed alita-moore closed 1 week ago

alita-moore commented 1 month ago

Is there an existing issue for this?

Describe the Issue

I am trying to send a POST request with a file to a local endpoint but it's sending a request with no data. I have tried uploading to postman cloud but it's not working

Steps To Reproduce

  1. Attempt to make a request using form data and a file
  2. notice that it sends a request with zero bytes

Screenshots or Videos

No response

Operating System

macOS

Postman Version

11.16.0

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

alita-moore commented 1 week ago

it was because Content-Length was equal to 0 in the headers. I disabled that header and now it woks