There are several scenarios where ui-upload can be used. These are:

  1. Direct upload by clicking on a link or button: Click here to upload an image
  2. Open "Select File" dialog from script and then upload the selected file automatically, or handle it and upload it manually.
    See the following demo:
    Load an image
    File Name Image