How to rename a file while its downloading