Download file from docker container through browser

Hi.

I have an ASP.NET webapp running in a docker container that I can access in google chrome on a given port.

I’m trying to download a .zip file that is hosted in this webapp’s root directory (by clicking a link with href=“/file_i_want_to_download.zip”).

When I run the app from my host machine, this works fine.

But when I try to download from the containerized app, chrome (also happens on other browsers) starts downloading the file, but aborts, stating “Failed - Server problem”.

How to fix this? Has anybody had a similar issue?

Thank you!