dgibbs7
(David G)
March 26, 2025, 6:56pm
1
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!
dgibbs7
(David G)
March 27, 2025, 12:41pm
3
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.
dgibbs7
(David G)
March 27, 2025, 1:50pm
4
I’ve created a ticket on Github also.
opened 01:47PM - 27 Mar 25 UTC
### Is there an existing issue for this?
- [x] I have searched the tracker for … existing similar issues and I know that duplicates will be closed
### Describe the Issue
I have a service that I’m developing … takes some image files and converts them to a PDF.
There appears to be a problem with postman being able to send files that were added before restarting the application.
### Steps To Reproduce
1. If there are no files attached to the request, I add a new local file, and send the request … it works correctly. I get that one file sent to my server.
2. If I shut down postman, start it up again, and send the same request, the file is not sent.
3. If I add a new local file to the request and send it, only the new file is sent.
4. If I restart postman again and send the request, no files are sent.
5. If I add a third file to the request and send it, only the new file is sent.
### Screenshots or Videos
_No response_
### Operating System
Linux
### Postman Version
11.38.4
### Postman Platform
Postman App
### User Account Type
Signed In User
### Additional Context?
_No response_