unjs / ofetch

😱 A better fetch API. Works on node, browser and workers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way to support `onUploadProgress` like axios does?

vedmant opened this issue · comments

Describe the feature

I'm migrating my project from Nuxt 2 to Nuxt 3, I was using axios and onUploadProgress method on some requests. How I can do the same with ofetch?

Additional information

  • Would you be willing to help implement this feature?

if it may help it is somewhat possible using content-length and ReadableStream with the native fetch which is wrapped.

Let's track via #45 👍🏼