Merge pull request #762 from edx/jkarni/hotfix/tempfile-varname

Fix var name issue
This commit is contained in:
Carlos Andrés Rocha
2013-08-21 11:16:50 -07:00

View File

@@ -167,7 +167,7 @@ def upload_asset(request, org, course, coursename):
sc_partial = partial(StaticContent, content_loc, filename, mime_type)
if chunked:
content = sc_partial(upload_file.chunks())
temp_filepath = upload_file.temporary_file_path()
tempfile_path = upload_file.temporary_file_path()
else:
content = sc_partial(upload_file.read())
tempfile_path = None