Working file upload to entities files directory, error message display in AJAX upload