From b93673df66cf7b3088b6cfda5a145e0d2f7bc26e Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Thu, 6 Sep 2018 14:52:34 +0100
Subject: [PATCH] Correctly render the multifile output

---
 .../templates/stream_forms/render_multi_file_field.html     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/opentech/apply/stream_forms/templates/stream_forms/render_multi_file_field.html b/opentech/apply/stream_forms/templates/stream_forms/render_multi_file_field.html
index f87d83862..e8b182af4 100644
--- a/opentech/apply/stream_forms/templates/stream_forms/render_multi_file_field.html
+++ b/opentech/apply/stream_forms/templates/stream_forms/render_multi_file_field.html
@@ -2,7 +2,11 @@
 {% block data_display %}
     <div class="wrapper">
     {% for file in data %}
-        {% include "stream_forms/includes/file_field.html" with file=file %}
+        {% if data.name %}
+            {% include "stream_forms/includes/file_field.html" with file=file %}
+        {% else %}
+            {{ file }}
+        {% endif %}
     {% endfor %}
     </div>
 {% endblock %}
-- 
GitLab