finalized the upload