Skip to content

Commit

Permalink
Get file from request.files
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed May 23, 2018
1 parent 4e018d9 commit ce829fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/views/admin.py
Expand Up @@ -116,6 +116,10 @@ def post(self):
logic.parse_params(
request.form, ignore_keys=CACHE_PARAMETERS))))
del data_dict['save']
if not request.files:
base.abort(404, _("Upload file not found"))

data_dict.update(request.files.to_dict())
data = logic.get_action(u'config_option_update')({
u'user': g.user
}, data_dict)
Expand Down

0 comments on commit ce829fa

Please sign in to comment.