Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Real-time Feedback for Large Batch File Processing in Dropzone #1354

Open
adrydez opened this issue Mar 28, 2024 Discussed in #1353 · 1 comment
Open

Comments

@adrydez
Copy link

adrydez commented Mar 28, 2024

Discussed in #1353

Originally posted by adrydez March 28, 2024
Hello Dropzone Team,

First of all, I would like to express my gratitude for your work on the Dropzone library—it has been an invaluable tool for handling file uploads in our React projects.

However, I've encountered a challenge that I believe could be addressed to improve the library's functionality, especially when dealing with large volumes of files.

Issue Description:
When users drop a large number of files (e.g., thousands) into Dropzone, there is currently no built-in way to provide them with real-time feedback on the processing status of these files. The onDrop method gets triggered only after all files have been processed, which can lead to a significant delay without any feedback for the user, making the interface feel unresponsive.

I attempted to use the validator function to implement custom logic for real-time feedback, hoping to update a counter or a progress bar as each file is validated. Unfortunately, it appears that updates made within the validator function do not reflect in real-time in the UI. For example, attempting to update a React state or manipulating the DOM directly within this function results in the changes being batched and only displayed after all files have been processed, not incrementally.

Suggested Enhancement:
It would be incredibly beneficial for Dropzone to support or offer a pattern for implementing real-time feedback during the file processing phase, especially when handling a large batch of files. An enhancement to the validator function or a new callback/event that fires per file (or batch of files) during processing could potentially address this issue.

Potential Benefits:
Improved User Experience: Users get immediate feedback, improving the perceived responsiveness of the application.
Enhanced Usability for Large File Batches: Makes Dropzone more suitable for applications that require handling of large numbers of files, enhancing its versatility.
Conclusion:
The ability to provide real-time feedback during the processing of a large number of files would be a significant enhancement to Dropzone, aligning with the needs of applications that manage extensive datasets or file collections.

Thank you for considering this enhancement request. I am looking forward to any suggestions or discussions on how we could address this challenge.

Best regards,
AdRY

@adrydez
Copy link
Author

adrydez commented Apr 2, 2024

just to add more information, I know, is not usual to work with thousands of files but it's real to work with vpn connections. And often there are lot of delays and you don't know if even a single file has been accepted.
So, to have a visual feedback that something is happening it would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant