trigger after upload is finished.