file seems to reset

Hi Ferdy, welcome!

Do you have your app deployed in your own server or in shinyapps.io? if the later, then the storage is not persistent in the server side and you have to take another approach.

Could you give us more information about your setup and a reproducible example of your issue? Please have a look at this guide, to see how to create one for a shiny app