Converted post-upload processing to use socket.io