2025-03-24 14:34:56 +01:00

7 lines
191 B
Python

def handle_uploaded_file(f, location):
if f is not None:
with open(location, 'wb+') as destination:
for chunk in f.chunks():
destination.write(chunk)