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

Unable to track file upload progress on Apollo Client v3- #349

Open
owusuappiah opened this issue May 8, 2024 · 3 comments
Open

Unable to track file upload progress on Apollo Client v3- #349

owusuappiah opened this issue May 8, 2024 · 3 comments

Comments

@owusuappiah
Copy link

So I have followed on what is recommended here on how to track progress on file upload. On apollo-client v3, it looks like xhr.upload.onprogress is not really working as expected.

Issue is:
It doesn't return the progress ranges until when it is 1 (donating 100%).

Followed up on @n1ru4l's solution in this section on an attempt to solve this for Apollo Client v3, and it seems not to work.

What do you think the issue is? Are there any potential updates since these suggestions from here please?

@jaydenseric
Copy link
Owner

It doesn't return the progress ranges until when it is 1 (donating 100%).

I don't know if any of that old code your reference is still a good idea, but are you sure that your files are not just small enough that it actually does upload them in one chunk?

@owusuappiah
Copy link
Author

That was what I twas thinking initially, but not really. I did test it out with files that are pretty much large. I have tried with 200MB, to 2 gigs files.

@owusuappiah
Copy link
Author

Regarding the old code reference, you are right. Not sure if there is another way to get this to work. There isnt much docs on this stuff as well, at least for this library to achieve file upload progress.

What is your best advice please?

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

2 participants