How to get your file from the state