Allow send_file to be called in different ways.