kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.36k stars 2.39k forks source link

The very first chunk is not getting uploaded #1831

Open subhashreehazra opened 1 year ago

subhashreehazra commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Go to Resumable Uploads Demo in plugins.krajee.com for file-input plugin.
  2. Open Network tab by doing an inspect element on the same page.
  3. Upload a zip file, large enough, under Resumable Scenario # 1 an keep and eye on network tab.

Expected behavior and actual behavior

When I follow those steps, I see that the upload url is called recursively with every chunk to upload, status being pending , with gradually changes to status 200, except the very first chunk. The status stays pending which changes to status 400 and the upload fails. I tried to implement this plugin in my web application and ran into the same issue. I was expecting all the chunks to get uploaded having status 200.

KRAJEE krajee1 Screenshot 2023-02-01 170308

@kartik-v kindly have a look into it.

Environment

Browsers

Operating System

Libraries

Isolating the problem