I am uploading some files to the server using the spring boot application. This upload functionality supports SVG file uploading also. But recently I have been facing security risks. A malicious user could upload an SVG file with JavaScript code. How can I detect which SVG file contains JS code?