diff --git a/alkatorapi/views.py b/alkatorapi/views.py index af9c21e..3c8148d 100644 --- a/alkatorapi/views.py +++ b/alkatorapi/views.py @@ -209,7 +209,7 @@ def photos(request): @csrf_exempt def upload_files(request): - for name, file in request.FILES.items(): + for file in request.FILES: print(name) rand = random.randint(0, 99999) random_name = f'photos/uploads/{rand}_{file.name}'