Finishes upload file