Finally, giveFile works