clean up upload process