Upload file using fileReader and socket.io