Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
Save a .txt file in local storage

Is there any way I can save a .txt file in the local storage and load it back in later? I have an file input element in html where I can load in files. The problem is, that when I reload the code I always need to reselect the file...

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can save only content but not files. If you have the possibility to read out the text file on the server and pack it into a json, then you can read out the json on the client side and pack it into your local storage.

If you do not have a server available, you can do this on the client side with: new XMLHttpRequest();. Read the file and save the content in your localstorage. In this sense: localStorage.setItem('MyContentFromTextFile', content)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda