Issue on decorator function (@param.depends) for FileInput widget

On a pn.widgets.FileInput, I want to have a decorator function such as @param.depends, which activate whenever I click on the File Browser button. The problem is using @param.depends the decorator function will be activated only when we choose a different file, and when we choose the same file, the decorator function will not work.

If it is not possible, it will be great if I have the possibility of reset() the widget…