Uppy: ProgressBar plugin doesn't show the progress bar anymore

Created on 4 May 2018  路  4Comments  路  Source: transloadit/uppy

Here is the minimal self-contained example that reproduces the problem (replace the XHRUpload declaration with your own custom endpoint):

<html>
  <head>
    <script src="https://unpkg.com/[email protected]/dist/uppy.min.js"></script>
    <link href="https://unpkg.com/[email protected]/dist/uppy.min.css" rel="stylesheet" />
  </head>

  <body>
    <div class="upload"></div>

    <script>
      var uppy = Uppy.Core()
        .use(Uppy.FileInput, {
          target: '.upload',
        })
        .use(Uppy.XHRUpload, {
          endpoint: 'http://localhost:9292',
          getResponseData: function (responseText, response) { return {} },
        })
        .use(Uppy.ProgressBar, {
          target: '.upload',
        })

      uppy.run()
    </script>
  </body>
</html>

On version 0.22.0 this shows the progress bar, but on 0.24.2 nothing is shown.

Bug WIP

Most helpful comment

@janko-m 0.24.3 is live! should be fixed, please re-open if not.

All 4 comments

I believe it鈥檚 a regression that was accidentally introduced when we added automated !important declarations in CSS. And since ProgressBar relies on setting width: {progressPercentage} in inline styles, it broke things, since !important has more weight. I鈥檝e fixed this https://github.com/transloadit/uppy/commit/bb4376571eba3adf017c3a26fdc4e28752548537, but haven鈥檛 release a patch yet, will do soon 馃憣

Great, thanks for the quick fix!

@janko-m 0.24.3 is live! should be fixed, please re-open if not.

Hi, i'm currently trying to use your Dashboard's example javascript snippet : https://uppy.io/examples/dashboard/, and I'm not able to see the progress bar...
Any idea ?
Running on 0.24.4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewhartstonge picture matthewhartstonge  路  3Comments

eltercero picture eltercero  路  4Comments

rrjanbiah picture rrjanbiah  路  3Comments

quetzyg picture quetzyg  路  3Comments

anushkamds picture anushkamds  路  3Comments