Hi Xuan,
Instead of using file manager widget to download a file, create a microflow button for users to download the file. In the microflow you can perform your required business logic (such as set the boolean to true etc.) and in the end of the microflow use download file action.
Hope this helps!