In Kentico, how can make it possible for site users to see and download files uploaded by other users through a form?
I make a form in Kentico CMS. Users can fill and submit it properly. My form has an upload file field.
I made a new page to show the content of the submitted forms. For this, I use a "Query Repeater with effect".
It seems the Query works well. I write a Transformation to show each record in a table format.
All records and fields appear well except the file field. I can not find a way to generate a link of uploaded files to assign it to the href
attribute of a link tag. I use code like this
<a href="https://example.com/CMSPages/GetBizFormFile.aspx?filename=<%# Eval("UploadFile1") %>"> Download File</a>"
The problem with this code is the <%# Eval("UploadFile1") %>
returns a string like this
94e5b02d-1bcd-4341-9930-6e5ef1029d8b.pdf/MyFileName.pdf
How can I solve this problem?