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

329
Vistas
Is there any way to add default value to react-dropzone (useDropzone)?

I would like to initialize the react-dropzone (useDropzone) with an image. The users should be able to override (replace) it with their own images if they want to.

My desire would be to be able to add the default image by URL. (ex. https://hatrabbits.com/wp-content/uploads/2017/01/random.jpg)

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

0

You can implement the default image (a placeholder) as you defined the error section. you need to add an img element and pass the default image's URL to it .

with a prop checking, you can determine to show the placeholder image or use the user's uploaded image or even nothing.

I assume you store the DropZone result in a sample variable like result, so:

{
  !result && <img src={https://hatrabbits.com/wp-content/uploads/2017/01/random.jpg}>
}

so the placeholder image will show if there is not a result

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