Added limit to content API and restricted to files (no dir)