question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'isDragReject' not called when excceeded maxSize

See original GitHub issue

Do you want to request a feature or report a bug?

  • I found a bug
  • I want to propose a feature

What is the current behavior?

  1. Listen for isDragReject event and set maxSize parameter
  2. Drag file in front of drop zone
  3. Event isDragReject not fire when file is larger than maxSize parameter

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

5reactions
krungta-mdsolcommented, Jul 6, 2021

I’m using 11.3.4 and I face the same issue. Any solutions yet?

0reactions
rolandjitsucommented, Jan 29, 2022

@krungta-mdsol @SaraRavasio could you open a new issue and provide a way to reproduce. Do note that while dragging, we cannot get any file info (such as file size), so the isDragReject is unreliable, until the drop event happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In React-dropzone, how to tell the user the file's maxSize is too ...
The problem is react-dropzone is not telling the user the file is too big. How can I update the above to tell the...
Read more >
[Solved]-React custom synthetic event-Reactjs - appsloveworld
Why is there no `keyCode` value on the synthetic event in react using ... causing Maximum call stack size exceeded · react-dropzone: isDragReject...
Read more >
react-dropzone
Any file which does not have a size in the [ minSize , maxSize ] range, will be rejected as well. Note that...
Read more >
How to prevent upload when max size dimentions are ... - MSDN
In dropzone documents says that thumbnail is the size of the preview images, im not sure if that can be used to validate...
Read more >
React Dropzone and File Uploads in React - Upmostly
To do that, we'll add another render prop called isDragRejected. ... Jump back into your code, and add the two minSize and maxSize...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found