in the repeat region when you add the download button, add a form tag, the button and a hidden form element. Set the initial value of the hidden form element to use the file name column from the recordset.
in the download behavior, bind the file name to the hidden form element.