Upload works! Formats data to be sent to visualizer