My project is based on this File code. I changed it a little bit, but they do the same