waynehoover / s3_direct_upload

Direct Upload to Amazon S3 With CORS
MIT License
652 stars 333 forks source link

data.context is empty on progress upload #257

Open thebravoman opened 7 years ago

thebravoman commented 7 years ago

In the code below from js, data.context is undefined and the code does not enter into the if:

progress: function(e, data) {
          var progress;
          if (data.context) {
            progress = parseInt(data.loaded / data.total * 100, 10);
            return data.context.find('.bar').css('width', progress + '%');
          }
        },