Use new upload api:replace file if exist
Fix some bugs
1. Fix server certificate change
2. Fix new group message display