When the user selects a file, the browser sends a message to the server about it through websocket.