我正在使用angular-file-upload (https://github.com/nervgh/angular-file-upload),我想在上传过程开始后禁用拖放功能,以便无法将更多文件添加到队列中。你知道我该怎么做吗?最终,我希望能够禁用拖放,然后可能在onCompleteAll之后重新启用它,但我满足于能够在isUploading ==为true时完全禁用该功能
发布于 2016-11-04 00:09:36
您可以为uploader.isUploading添加监视,当它为真时,您可以将queueLimit设置为1。
发布于 2016-04-12 21:57:09
根据docs,您可以将ngf-drop-disabled="boolean"添加到表单中。在第一次上传完成后将其设置为true应该可以解决您的问题。
https://stackoverflow.com/questions/35162227
复制相似问题