Optimize avatar upload
Created by: mutalisk999
- Check upload stream bytes size before store it to file, and check if upload stream is jpg/png simply.
- Use md5 value of stream bytes as avatar file name to ignore the scene of the same uploaded stream bytes with multiple avatar files.