MCPcopy
hub / github.com/retspen/webvirtcloud / handle_uploaded_file

Function handle_uploaded_file

storages/views.py:83–88  ·  view source on GitHub ↗
(path, f_name)

Source from the content-addressed store, hash-verified

81 return HttpResponseRedirect(reverse('index'))
82
83 def handle_uploaded_file(path, f_name):
84 target = path + '/' + str(f_name)
85 destination = open(target, 'wb+')
86 for chunk in f_name.chunks():
87 destination.write(chunk)
88 destination.close()
89
90 error_messages = []
91 compute = get_object_or_404(Compute, pk=compute_id)

Callers 1

storageFunction · 0.85

Calls 2

openFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected