I’m testing a file download API using Postman. The API returns a file with a Chinese filename, and I’ve correctly set the Content-Disposition
header using UTF-8 encoding:
Content-Disposition: attachment; filename*=UTF-8''%E5%B9%B4%E5%BA%A6%E6%8A%A5%E8%A1%A8.pdf
When I test the API:
- The file downloads correctly with the Chinese filename when accessed from Swagger UI or a browser.
- In Postman, if I use “Send and Download,” the file is saved with a generic name (e.g.,
response
) and not the Chinese filename from the header.
I’ve verified that:
- The
filename*
parameter is correctly set usingUri.EscapeDataString
. - The response headers in Postman include the proper
Content-Disposition
.
Is there a way to make Postman respect the encoded filename during download, or is this a current limitation in Postman?
Any guidance or workaround would be appreciated.