Skip to content

xnr.upload 'progress' event not emited #1544

@Akiyamka

Description

@Akiyamka

Describe the bug

Progress event not emitted

const xhr = new XMLHttpRequest()

// ... uploading logic ... //

xhr.upload.addEventListener('progress', (event) => {
  console.log('Progress') // This callback not called
})

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-8t5mbf?file=src%2Fdemo.ts,src%2Fserver.js

Steps to reproduce

  1. Open sandbox
  2. Press "Click here to start"
  3. Press "Upload button"

Expected behavior

I expect that it's work the same way as it works in real live (on my local machine for example) - event emitted, callback called, I can read event data.

Parity with Local

Screenshots

image
Pasted image

Platform

Browser name  = Firefox 
Full version  = 131.0.2 (64-bit) 
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0 
performance.memory = undefined
Hash = 34c588ed

Also tested on

Browser name  =  Chrome
Full version  = 129.0.6668.100
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions