Fix new post count
Improve file upload