title: Download a file from a url
body: <p>My way of downloading a file from a docker is by using:</p>
  
  <p>Backend</p>
  
  <pre><code>url = "http://" + settings.getDockerIP() + ":" + settings.getDockerPort() + "/containers/" + container.getId() + "/archive?path=/path";
  </code></pre>
  
  <p>Frontend</p>
  
  <pre><code>&lt;div class="fm-file-icon"&gt;
      &lt;a href="${file}"&gt;&lt;img src="../resources/img/folder.png"&gt;&lt;/a&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code> @RequestMapping("/report")
  public ModelAndView report(HttpServletRequest request) { 
      String environmentName = request.getParameter("name"); 
      ModelAndView model = new ModelAndView("report");
      model.addObject("file", Report.getFileFromContainer(environmentName));
  
      return model;
  }
  </code></pre>
  
  <p>The problem is that to download the file you also need a connection to <code>settings.getDockerIP():settings.getDockerPort()</code> and I don't want that. I just want to be able for the user to download the file by accessing the site without having the connection to the docker itself.</p>
  
  <p>How can I do this? Maybe I need to download the file on the backend and then pass the url to the file in my server?</p>