the way you have created the download buttons is not correct.
dont add the form around the repeat region add the form inside the table cell that contains the download button
also, add a hidden form element to the form, set the value of the hidden form element to the FileName column from the recordset.
in the download behavior, bind the file name to the hidden form element.