File Upload Problem

Hello,

Until very recently (yesterday night) everything was working extremely well. However, my results started to change without me making a single change in my own code. Basically, the problem is that the file uploader is not reading the files from my computer in the correct order. When I print out the names of the images that it read, this is what I got:

IM00001.tif
IM00002.tif
IM00004.tif
IM00003.tif
IM00005.tif
IM00006.tif
IM00007.tif
IM00009.tif
IM00011.tif
IM00008.tif
IM00010.tif
IM00014.tif
IM00013.tif
IM00012.tif
IM00015.tif
IM00016.tif
IM00017.tif
IM00018.tif
IM00019.tif
IM00021.tif

The correct order is supposed to be the images with numbers in sequential order. Does anyone know what the problem might be?

I still don’t know what the problem is, but it may have something to do with the new streamlit update?