add format check for upload by xu