Updated CAS and api files to fix upload issue.