stuff temp file in an FD, instead of in memory

Take 3 on "How to download a file"