danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

Error reporting on demo page #91

Open rollopack opened 5 years ago

rollopack commented 5 years ago

Hi, I think the demo-config.js need to be update for the new xhr json report. From:

onUploadError: function(id, xhr, status, message){
      ui_multi_update_file_status(id, 'danger', message);
      ui_multi_update_file_progress(id, 0, 'danger', false);  
    },

To:

onUploadError: function (id, xhr, status, message) {
            ui_multi_update_file_status(id, 'danger', xhr.responseJSON.message);
            ui_multi_update_file_progress(id, 0, 'danger', xhr.responseJSON.message);
},
comercialseo commented 4 years ago

Thanks!!! I had the same problem...