I have this problem in this piece of code:
resp.addHeader("Content-Disposition", "inline; filename=" + fileName);
When the file name is : a_b_c.doc or abc.doc , the name of the downloaded file is correct. However, when the file name is : a b c.doc , the name of the downloaded file is only "a".
How can I work around this?
Many thanks!
The spec explains this, and gives explicit examples with spaces in the file name.