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

524
Visualizações
Nest Js - How to generate a file and send it as a request response without saving the file locally?

I have a task where I need to export a json to csv via an endpoint. When accessing the endpoint, the route should return the .csv file with the data. Is there a way to do this without having to save the file locally?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you use a File Interceptor on a route without specifying a storage option, the file will exist purely in memory and you will not need to save it to the disk.

I should warn however that if a uploaded file is very large, you can run out of memory. It's generally a better option to save to the disk as a temp file, then delete afterwards.

about 4 years ago · Juan Pablo Isaza Relatório
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