Serenity FileUploadEditor Confirmation

Hi guys, this post will show you how to implement Confirmation feature for Serenity‘s FileUploadEditor

=> Requirements:

  • If uploader has no file selected, don’t show confirmation box
  • If we selected files, we want to choose difference files then it should show confirmation box with message:

    This will overwrite the current file. Are you sure you want to continue?



Happy coding!