FileUpload

The event FileUpload fires during the processing of a job when KCM Core wants to request a file from the client application. Handlers of the event FileUpload should be of the type Aia.ITP.Server.Job.FileUploadHandler.

delegate string FileUploadHandler(string filename);

A FileUpload handler receives a parameter filename that indicates the file that is being requested by KCM Core. The return value of the handler should be the name of the actual file that will be uploaded to KCM Core. It is also possible to refuse the upload by returning null or throwing an exception. This causes the KCM Core job to fail immediately. If no event handler is installed for the event FileUpload and KCM Core tries to request an upload, the job fails as well.