1. -Fix a bug of upload logic. Set total size of the task.
2. -Remove SetThreadName function, is not stable.