On my Django page I have a paragraph to download attached files:
{% for i in post.file_set.all %}<p class="article-content mt-2 mb-1"><strong>Attachment {{ forloop.counter }}: </strong><a href="{{i.file.url}}" >Download</a></p>{% endfor %}
How can I show File name insted of word ‘Download’. Users don’t know which file is which when downloading, in case of many files. Also, if extension is possible.
So, insted of:
Attachment: Download
I would like to have:
Attachment: image.png