Button.on_click behavior?

I suppose FileInput should not be used with on_click. Check out this: