Fix file download API calls