Fix $fromFile variable in download method