We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef55fcb commit 58fbee8Copy full SHA for 58fbee8
onadata/apps/logger/templates/downloadSubmission.xml
@@ -6,6 +6,6 @@
6
{% for media in media_files %}<mediaFile>
7
<filename>{{ media.name|safe }}</filename>
8
<hash>md5:{{ media.file_hash }}</hash>
9
- <downloadUrl>{{ host }}{% url "attachment_url" 'original' %}?media_file={{ media.media_file.name|safe }}&attachment_id={{ media.pk|safe }}</downloadUrl>
+ <downloadUrl>{{ host }}{% url "attachment_url" 'original' %}?media_file={{ media.media_file.name|safe }}&attachment_id={{ media.pk|stringformat:"d" }}</downloadUrl>
10
</mediaFile>{% endfor %}
11
</submission>
0 commit comments