Skip to content
Snippets Groups Projects
Commit 65750f41 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Allow existing files on imported submissions to get correct url so they can be downloaded.

parent c126ba39
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ class AccessFormData: ...@@ -38,6 +38,9 @@ class AccessFormData:
@classmethod @classmethod
def stream_file(cls, file): def stream_file(cls, file):
if 'path' in file:
file['filename'] = file['name']
file['name'] = file['path']
if isinstance(file, StreamFieldFile): if isinstance(file, StreamFieldFile):
return file return file
if isinstance(file, File): if isinstance(file, File):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment