IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

File upload data

File upload data is contained in an operation context or a session context to enable other operations to access the file when the file upload request is complete.

File upload data must contain the following three elements:

Note that when an alpha developer creates a file handler and configures a FileUpload widget that is associated with the file handler, the structure of the file upload data must be the same as the structure of the file handler.

Important: The file upload data definition must align with specific file handlers. E.g. in the sampleFileHandler class, it will need to get file info by key “file”, and update file into two field: fileId and name.
Figure 1. Example file upload data.
<!-- data for a file uplaod -->
	<!-- a file info with name 'file' is mandatory, fileId field is 
			mandatory developers can add more other file info here -->
	<kColl id="file">
		<field id="name" />
		<field id="size" />
		<field id="fileId" />
	</kColl>
	<kColl id="userImgs">
		<!-- latest upload file, this item is mandatory -->
		<refDatarefId="file" />
		<!-- if there more than one file is uploaded, information of the 
				other uploaded files is added to the receivedFiles area -->
		<iColl id="receivedFiles">
			<refDatarefId="file" />
		</iColl>
		<!-- The file handler that handles the file upload request. This field mandatory -->
		<field id="handler" value="sampleFileHandler" />
	</kColl>


Feedback