Commit e123a5f8 by Adam Palay

fix to problems with uploading files

parent 1dbbbb10
...@@ -473,7 +473,8 @@ def modx_dispatch(request, dispatch, location, course_id): ...@@ -473,7 +473,8 @@ def modx_dispatch(request, dispatch, location, course_id):
error_msg = _check_files_limits(files) error_msg = _check_files_limits(files)
if error_msg: if error_msg:
return HttpResponse(json.dumps({'success': error_msg})) return HttpResponse(json.dumps({'success': error_msg}))
data.update(files) # Merge files into data dictionary for key in files: # Merge files into to data dictionary
data[key] = files.getlist(key)
try: try:
descriptor = modulestore().get_instance(course_id, location) descriptor = modulestore().get_instance(course_id, location)
......
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