Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions