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

Can you make a example to extend upload files with progress percentage? #112

Closed
vietnd87 opened this issue Aug 23, 2018 · 2 comments
Closed
Labels

Comments

@vietnd87
Copy link

Hi,

As my entry, Progress bar is popular for upload script. It is wonderful if we can implement it with apollo upload client.

Hope any one help this for me. Thanks!

@vietnd87 vietnd87 changed the title Can you make a example to extend upload files with progress percent? Can you make a example to extend upload files with progress percentage? Aug 23, 2018
@jaydenseric
Copy link
Owner

The closes thing you will get to an example is #88 (comment). My advice is not to bother with upload progress; substituting the native fetch API is a bit of a hack.

I don't intend to work on the problem, but if you do want to chat about it with others you could try the #uploads chanel of the Apollo Slack team 😌

@vietnd87
Copy link
Author

Thank you for your inform, I tried your example from #88 but it is sort function some variables I can not to know how to import it:

const xhr = new XMLHttpRequest()

fetch: typeof window === 'undefined' ? global.fetch : customFetch

They are: XMLHttpRequest, global, window

Sorry, I have no more experience in this. So, real happy if you share full code about this. :)

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

No branches or pull requests

2 participants