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

129
Vistas
Problemb in formidable in node js

Here is the my route for getting form data and isvalid function check the type of file and return true/false. enter image description here enter image description here enter image description here when i upload image with type jpg,jpeg,png isvalid function true and file uploded.and when i uplod pdf it give me error as expected but some dummy data is uploded in my upload folder .whenever validation failed it works expectedly but some dummy data stored in upload folder.

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

0

It is too late inside the form.parse callback to validate files, at this point they are already uploaded.

Try again with formidable version 3 and then use the filter option

options.filter {function} - default function that always returns true. Use it to filter files before they are uploaded. Must return a boolean.

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