Use now download() function to download file from given file object
Fix download() function using now file object in param