[Refactor]Remove redundant code from FragmentSelectUploadFiles

Signed-off-by: Ethan Shan <shan0xiao0xi@gmail.com>