Skip to content
Snippets Groups Projects
Commit e20cf8d7 authored by Megan Henning's avatar Megan Henning
Browse files

Don't read metadata form field as file

parent 6db2892c
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,9 @@ def process_upload(request, strategy, container_type=None, id_=None, origin=None
# Browsers, when sending a multipart upload, will send files with field name "file" (if sinuglar)
# or "file1", "file2", etc (if multiple). Following this convention is probably a good idea.
# Here, we accept any
file_fields = [x for x in form if form[x].filename is not None]
# Non-file form fields may have an empty string as filename, check for 'falsy' values
file_fields = [x for x in form if form[x].filename]
# TODO: Change schemas to enabled targeted uploads of more than one file.
# Ref docs from placer.TargetedPlacer for details.
......
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