Changed groovy files back to Java files.
Fixed File Uploading issue.