Hello @Charly_Wargnier,
I had a similar issue accessing files created by the app once it has been deployed on Streamlit share. I posted a question about it.
I have tried the approach you described but it didn’t work either. I have had to disable some functionality in my shared app. Maybe you can help check it out.
Cheers.