-
Notifications
You must be signed in to change notification settings - Fork 283
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
[upload] Downloading doesn't report the correct progress #1266
Comments
This will probably get fixed in #1237, we need to update tauri api version to apply the fix made in tauri-apps/tauri#9463 |
New packages were released, can you make sure to update all tauri related packages (both rust and js) and then try again? |
After updating all packages to the latest version, this bug seems to have been fixed, thank you! |
Fairly sure this is not the plugin's fault but an issue with the Channel api. I could swear i talked about this somewhere before but i can't find the issue or discord discussion 🤔 |
It seems related to this issue on the tauri repository: tauri-apps/tauri#8177 Given that the issue doesn't seem to be related to the plugin, but to the channel API, I'm closing it again. @FabianLars I noticed that you implemented some sort of workaround on dd8bc4a, are there any plans to implement event emission throttling on the main branch? |
I'm not sure if it's really 8177. This emit issue makes the whole app crash while we're just talking about lost events. Considering that we're talking about v1 vs v2 it may be the same issue just without the crash due to refactoring, not sure. As long as we're in beta (hoping that we figure out the issue) i won't add the throttle. Once we're running out of time and don't have a fix, i'll add it though. |
When trying to download zip files using the @tauri-apps/plugin-upload plugin, the progress callback isn't reporting the correct length of the chunks being downloaded.
Here's an example (using console.log) of the total chunks reported not matching the entire size of the file:
Here's an example of the total chunks reported properly matching the actual size of the file:
Some bigger files also work and other don't, so I don't think it has to do with the size of the file.
Here's my JavaScript code calling the @tauri-apps/plugin-upload plugin:
Is there some kind of compression going on during the download? How to report the actual progress?
The text was updated successfully, but these errors were encountered: