From e123a5f8ad33edd582b9fed100bc29aa9371fb8a Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Tue, 9 Jul 2013 15:00:17 -0400 Subject: [PATCH] fix to problems with uploading files --- lms/djangoapps/courseware/module_render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index 66fb907cd3..db7ba1641e 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -473,7 +473,8 @@ def modx_dispatch(request, dispatch, location, course_id): error_msg = _check_files_limits(files) if 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: descriptor = modulestore().get_instance(course_id, location)