Fixed support for downloading via file.