Using dcc.Download on Heroku

Have a dash app that dynamically generates dcc.Downloads in order to download files from a url depending on areas selected from a map.

Works great locally, and the download takes time / appears to work when launched on Heroku, but the file doesn’t appear in my Downloads. Anyone know if the issue is that the component doesn’t work properly on Heroku or that Heroku sends the file somewhere else?

The code snippet to return the data to the dcc.Download is as follows:

image_content = requests.get(image_url).content
content = base64.b64encode(image_content).decode()
data = dict(filename=image_filename, content=content, base64=True)