Roboflow api upload bug with 1 image in folder

I have paid account for my detection project yolov8. I wrote code on python for upload images directly to folders in my project via API and it works well, but sometimes 1 or 2 images upload in new folder with same name (like on pictures). My code work on AWS Cloud. How i can fix it?

Hi @Vladymyr_K - do you mind sharing the code you’re using to upload the images?