add handling for upload completion