Menu

How about onAllUploadsComplete()?

2014-07-09
2014-07-10
  • Ben Michaud

    Ben Michaud - 2014-07-09

    Is there some way to know when all files in the queue have been uploaded? If I knew that, I could give some feed-back to the user and also indicate to the back end that all files in that bundle have been uploaded, so it can tidy up that uber-job processing on the server.

     
  • Shawn Quinn

    Shawn Quinn - 2014-07-10

    In order to maintain compatibility with some versions of IE, we're stuck with the event callbacks that SWFUpload provides. So, the best way to know if all uploads are finished is to check the "Uploader.getStats().getFilesQueued()" property inside of an "UploadCompleteHandler". If that number is zero, then you can safely report that all of the uploads have been completed.

     

Log in to post a comment.