I have a main folder with 20 subfolders that contains the images. I want to loop through them all and use the requests.post() to each images in subfolders. I have tried alot of methods but I can't seem to work. Any help would be appreciated
directory = '<directory>'
url ='http://127.0.0.1:5550/upload_image/0'
for files in os.listdir(directory):
print(os.path.join(directory,files))
requests.post(url)