Skip to content

[Bug][Upload] The status indicator indicates success before receiving Good status #3475

@Yanko-Georgiev

Description

@Yanko-Georgiev

Description

The Upload changes its status to successfully uploaded before receiving status 200 from the browser. In scenarios where the file is small (less than 1MB), the progress bar immediately hides to show that the file was successfully uploaded without loading the progress bar to 100%. If you open the network tab, you can notice that the call returns status 200 after the UI has already displayed that the upload was successful.

Plan

KendoReact

Steps To Reproduce

  1. Open the following example: https://stackblitz.com/edit/react-8vqdzt5s?file=package.json
  2. Open the Network tab
  3. Upload a larger file (more than 5MB)
  4. Click Upload
  5. Notice that the progressbar hides and displays the success message before the save request returns status 200
  6. Upload a small file (a few KB)
  7. Click Upload
  8. Notice the progress bar is shown displaying 0% and is then hidden to display a success message, while the request has not returned status 200

Screenshots or video

Image

Actual Behavior

The success message is displayed earlier.

Expected Behavior

The success message should be displayed after the browser receives a Good status.

Last working version of the KendoReact package (if regression).

9.2.0

Additional details

Reported in TicketID: 1704372
Related to this bug - #2154

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions