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

285
Vistas
how to convert a file object to a url

I have a javascript file object like so:

enter image description here

and I would like to turn it into a url so that the file can be accessed through the url. How would I go about generating a url for this file through javascript?

The javascript for the file object is something like this:

const file = new File(["blob data"], "foo.txt", {
  type: "image/png",

});

I would like to pass this file variable somewhere and have a url generated for it. Is that possible?

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

0

This one was really one google search away my friend, unless I misunderstood your needs?

objectURL = URL.createObjectURL(object);

createObjectURL on Mozilla

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