Postman sending blank content type if only one file is sent

I have a service that I’m developing … takes some image files and converts the to a PDF.

If I send only ONE file on the request, spring errors out with a Content type '' not supported error.

If I send TWO files on the request, it works fine.

The service is written in Java and the parameter is
@RequestBody final List<MultipartFile> imageFileList

It seems like this should work, but maybe I’m missing something obvious?

Thanks!

David

Hi @dgibbs7 welcome to the Postman Community!

Thanks for sharing your question. While I don’t have a solution for you just yet, I wanted to acknowledge your issue and let you know that someone from our awesome community will likely have insights to help.

We appreciate you being here and look forward to seeing what others suggest!

Some additional information…

  • If I remove all files from the request, attach a new local file, and send the request … it works correctly. I get that one file sent to my server.
  • If I shut down postman, start it up again, and send the same request, the file is not sent.
  • If I add a new local file to the request and send it, only the new file is sent.
  • If I restart postman again, and send the request, no files are sent.
  • If I add a third file to the request and send it, only the new file is sent.

I’ve created a ticket on Github also.