Open mustafah opened 6 years ago
I discovered the reason, actually I was executing the event handler (which has the uploading with evaporateJS) twice !, because I am using rails turbolinks so eventually I had to do something like the following:
$(window).on('load turbolinks:load', function () {
$('.custom-file-input').off('change').on('change', function () {
evaporateFile(this, {
progress: function (progressValue) {
},
complete: function (url) {
console.log(url);
}
}
);
});
});
Thank you ...
I have standard file uploading code like the following, and it is uploading correctly but the progressValue is not growing ascendingly , it can get less then more again ! Is that normal behaviour ?