NEW4.00.03 · Released 27 September 2023
NEWfinPOWER Connect
Released in
4.00.03
27 September 2023
  1. Opened29 Aug
  2. Closed29 Aug
  3. Released27 Sep
Article 20668 Job J031905

HTML Widgets; widget.UI.FileUpload Control; Change event added

The FileUpload HTML Widget Control now has a "Change" event that can be used to detect when files are added to or removed from the control's file list.

 C.fuFileUpload = widget.UI.FileUpload("fuFileUpload", {
   allowFile: true,
   allowDocumentManager: true,
   allowResource: true,
   maxFiles: 1,

   onChange: fuFileUpload_Change,
 });
function fuFileUpload_Change(sender, e) {
  // some code to work with the control's selected files
}