Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!