Prepare CSV file for upload