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

453
Vistas
How to convert local image path to url

I am fairly new to React, and is trying to convert an local image file path to a data url or blob url that can be used in the src.

import image from "./img1.jpeg" will not work for my case because the image file will only be created after some user interaction that will trigger the backend processing script.

I have an idea of creating a hidden upload field and upload the image then convert it to URL with URL.createObjectURL(e.target.files[0]) but I have no knowledge in doing that...

Since @quentin stated that I should convert the file path to URL in server-side code(expressjs), how can I do the conversion?

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