2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 00:31:55 +00:00

fix for python 3.11

This commit is contained in:
Philip Sargent 2024-07-10 22:18:39 +02:00
parent 7908257d63
commit a4783d2332

View File

@ -103,7 +103,7 @@ def new_image_form(request, path):
form = NewWebImageForm(request.POST, request.FILES, directory=directory) form = NewWebImageForm(request.POST, request.FILES, directory=directory)
if form.is_valid(): if form.is_valid():
print(f"new_image_form(): form is valid ") print(f"new_image_form(): form is valid ")
print(f"new_image_form(): files: {request.FILES["file_"]}") print(f"new_image_form(): files: {request.FILES['file_']}")
f = request.FILES["file_"] f = request.FILES["file_"]
binary_data = io.BytesIO() binary_data = io.BytesIO()
for chunk in f.chunks(): for chunk in f.chunks():