Implement update stats after file upload in editor