working upload and download process