When I am trying to download the file from UI, a part of the filename is truncated and I am unable to download the file. For example:- if the actual file name is "testscript.doc", while reading through the servletrequest getparameter method, the filename is truncated and I am getting the file name as "test.doc". Here the word "script" is missing from the file name.
This is happening only when I use "script" anywhere in the filename.
The UI part is written in AngularJS and the background processing is through Java.
I have debugged using developer tools. I could see the actual file name for downloading but at the background processing (servlet) I could see a part of the filename truncated and unable to download the file.
The application is developed using SpringMVC framework. For download logic, I am using Java Servlet and AngularJS. The application is hosted on the Tomcat server.
A part of the filename is truncated after the request is sent from UI due to which I am unable to download the file. Please help.