Skip to content
Snippets Groups Projects
Commit 68fe3c42 authored by Harsha Kethineni's avatar Harsha Kethineni
Browse files

placer.check() call corrected

parent ac7d76f3
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,8 @@ def process_upload(request, strategy, container_type=None, id_=None, origin=None
placer_class = strategy.value
placer = placer_class(container_type, container, id_, metadata, timestamp, origin, context)
placer.check()
# 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
......@@ -94,7 +96,6 @@ def process_upload(request, strategy, container_type=None, id_=None, origin=None
# Ref docs from placer.TargetedPlacer for details.
if strategy == Strategy.targeted and len(file_fields) > 1:
raise FileFormException("Targeted uploads can only send one file")
placer.check()
......
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