fixes #4921
Merge pull request #4948 from dotCMS/issue-4921-improve-security-of-AjaxFileUploadServlet

fixes #4921