Save File from API Call

Im trying to save a pdf file from an API call. I get a successful returned result and set the file as a file.

Then I create a new thing and have it set to open in a new window. However, it opens into a blank page called http://filename.pdf

How can I save a file not using a url to bubble or a 3rd party storage service?

Can you share a link to your editor?

https://d10.bubble.is/page?type=page&name=test-page&id=resolvesuite&tab=tabs-1