From 696658e3c66a8538890bb6ceb4e26e36f1228f35 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Mon, 7 Oct 2024 11:25:49 +0200 Subject: [PATCH] multiple files probably --- alkatorapi/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/alkatorapi/views.py b/alkatorapi/views.py index 3c8148d..e80f370 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -210,7 +210,6 @@ def photos(request): @csrf_exempt def upload_files(request): for file in request.FILES: - print(name) rand = random.randint(0, 99999) random_name = f'photos/uploads/{rand}_{file.name}' with open(random_name, "wb+") as destination: