We can save multiple files in one filefield, using multiple
attribute in HTML input tag and using request.FILES.getlist()
and for
loop in views.
This works properly, but the question is:
When we save several files in one filefield of an object, how can we access all of them in templates?
I tried the same as the code below but it did not work:
{% for foo in obj.filefield %}
{{ foo }}
{% endfor %}