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.
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.
<!-- 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>