Upload/Download progress stream when using GridFS? #346
JohnF17
started this conversation in
Enhancements
Replies: 1 comment
-
I'm reviewing the whole driver, so, at present, I have not the time to do this. I keep it highlighted as a new feature for when I will analyze also how to "restyle" the GridFS part. |
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, this probably is a feature request if it has not been implemented yet but I was just wondering if there was any implementation done for getting a stream for upload and download progress when using GridFS's save and/or writeToFilename method.
Use Case
When uploading/downloading large chunks of data, the user would't be stuck there just watching the loading indicator to finish, they'll have an idea of how long it might take.
So If retrieving the progress is not done yet, here's an idea of how it might look (dio package inspired)
For Uploads
The save method would look something like this
For Downloads
The writeToFilename would look something like this (technically not sure if its the writeToFilename method that takes long or the getFile method but nonetheless;)
Ps. Thanks for this awesome package
Beta Was this translation helpful? Give feedback.
All reactions