Commit 059d75ba authored by Ivan Tyagov's avatar Ivan Tyagov

Filename do make sense only when contributing files not remote URLs.

parent 70b0ef1a
......@@ -188,7 +188,7 @@ class ContributionTool(BaseTool):
content_type = kw.pop('content_type', None) or content_type
kw['file'] = file_object
if not filename:
if not filename and url is None:
raise ValueError('filename must be provided')
if not content_type:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment