문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top