There is a minor issue with this component, where if it is used in multiple places within a screen, the file will download multiple times to match the number of places where this widget has been used. The same issue is found where the component is used within a list.
My workaround involves placing the widget within a hidden link and then using the widget when needed by calling the link using JavaScript.
Hi Manogar,
The component was build to only have 1 block per screen. What you need to do is have 2 variables: FileName and FileContent and each time you want to make a dowload, assing what you need to download to those variables. This will trigger the onParametersChange of the component and will download the correct file.
Hope it helps