How to Match Orders to User Sessions in WPeC

upload the file and add the item to the cart in one process, passing the filename as extra meta data with the cart item. if they remove the item from the cart, you can delete the file so you don’t have abandoned files.