Fix file-based download in Phragment