Frage

I am using multiple instances of fineuploader in one page. I want to make sure that none of files are in progress in all instances of fineuploader before user clicks submit button on page. If files are completed, deleted, cancelled then its fine but it should not be in uploading status. How can I check easily?

Note : Fineuploader instances are created dynamically so it can be 2 or it can be 10

How can I check fineuploader's status -- whether its is uploading any file or not?

War es hilfreich?

Lösung

Create a data structure that any instance of the uploader could access that would store how many files were submitted via onSubmit / onSubmitted and if the onAllComplete was emitted for that uploader. Ensure the button to proceed cannot be triggered unless that data structure shows all files have been successfully uploaded.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top