weixiyen / jquery-filedrop

jQuery plugin - drag and drop desktop files and POST to a URL to handle files.
958 stars 285 forks source link

Reset global progress in afterAll? #162

Open chrfin opened 10 years ago

chrfin commented 10 years ago

I think it is strange if the upload of files is finished and you start another batch by draging on new files, that the progress will continue including the old files. To change that I altered the afterAll method:

    function afterAll() {
      global_progress = [];
      return opts.afterAll();
    }

Is this a valid solution or can this cause problems?