formidable icon indicating copy to clipboard operation
formidable copied to clipboard

maxFileSize not working as it should

Open MohamedKarrab opened this issue 1 year ago • 1 comments

Support plan

  • Which support plan is this issue covered by? (Community, Sponsor, Enterprise): community
  • Currently blocking your project/work? (yes/no): yes
  • Affecting a production system? (yes/no): somehow

Context

  • Node.js version: 21.6.2
  • Release Line of Formidable (Legacy, Current, Next): latest
  • Formidable exact version: latest
  • Environment (node, browser, native, OS): node
  • Used with (popular names of modules): idk

What are you trying to achieve or the steps to reproduce?

I think the maxFileSize check only happens after the file is fully uploaded, how to make it so it's immediate after bytes received exceed the set limit?

What was the result you got?

Only after file fully uploaded

What result did you expect?

Immediately after limit is reached

MohamedKarrab avatar Mar 04 '24 23:03 MohamedKarrab

@MohamedKarrab I think the maxFileSize check only happens after the file is fully uploaded

I think so too. But I thinko you can work around that by using onPart

tunnckoCore avatar Mar 10 '24 20:03 tunnckoCore