Add parsing functionality to upload