Skip to content
Snippets Groups Projects
Commit c998aa52 authored by Kevin S. Hahn's avatar Kevin S. Hahn
Browse files

eleminate reference to non-existant variable

- related to fixing multipart uploads
parent c45201a5
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,7 @@ class Container(base.RequestHandler):
filename = file_info['name'] + file_info['ext']
filepath = os.path.join(tempdir_path, filename)
field_storage_obj = self.request.POST.get(filename)
with open(filepaths[-1], 'wb') as fd:
with open(filepath, 'wb') as fd:
for chunk in iter(lambda: field_storage_obj.file.read(2**20), ''):
hash_.update(chunk)
fd.write(chunk)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment