Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

79
Visualizações
Place download request in one tab but complete in another

A web app opens new tab and places a POST request to the server to create a file for a download. Here is the code that sends the file back:

Response.AppendHeader("content-disposition", "attachment; filename=name");
Response.ContentType = "application/octet-stream";
Response.WriteFile(zipPath);
Response.Flush();
Response.End();

What can happen is that the user can close the new tab and no download would take a place. Is there any chance that the app would still get the file? I understand that placing request in the app is the way to go, but I am dealing with existing architecture.

Thanks for help.

Just to point out that the files needs to created first hich take some time.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda