stop bundling this stuff
specifically because
1) it's clearly not being handled properly, so make it work manually yourself
2) file uploads are tricky. if you forget up security and someone gains control of your websocket server, they can forget stuff up
3) file uploads are tricky and something is broken. if they can even /dos/ your websocket server, a lot of functionality goes down with it
write it in node.js, but make it work independently of the other servers (file upload server, tomcat, websocket, and legacy ftp)