Fine uploader calls onAllComplete twice

112 Views Asked by At

Fine uploader calls onAllComplete even at the page load (uploader loads previously uploaded files) when session from Initial File List is used.

If I keep it like that, an infinite loop will start, so I would like the onAllComplete to NOT be called at init ideally without need to use any flags.

I am using this code:

session: {
   endpoint: '/assets/inc/reappear-image-...'
},
callbacks: {
   onAllComplete: function (succeeded, failed) {
      //this happens to be called on init and then on save
      ...
0

There are 0 best solutions below