move the upload file and remove some files