Generally i would not treat file paths as strings, it can cause all sorts of issues, especially when running cross-platform. I would use the builtin pathlib standard library.
I’ve noticed one difference : In the message error, when I use pathlib, it didn’t detect the specific image to select.
Cf in the message error, it doesn’t traduct “{row.image_id}” and “{row.product_id}” while with filename it was working.
Wouaw, I didn’t see this. Th eupload was fine.
I’ve corrected this also. But I really think there is something missing or something I should know about upload images for Streamlit App.
I have the same message error.
I even tried to use “webp” format and it doesn’t change anything.