front upload limits and js file and size counting