This is an example annotator which implements all possible features of an annotator.
Files can be uploaded using a 'file' input, and doing a separate request that invokes a function that accepts a file:
Configuration that is used when setConfig() is invoked