FileUpload

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

delegate string FileUploadHandler(string filename);

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