Hi.
I have an upload control that allows selecting directories. I'd like to limit folder the recursion. My idea is to filter the files in the select event of Upload by doing something like:
e.files = ko.utils.arrayFilter(e.files, function(item) { return self._count(item.rawFile.webkitRelativePath, '/') === 1; }
Obviously this does not work and all the elements are added to the uploader. Is there a way to filter individual files when selecting them?
Thanks.
I have an upload control that allows selecting directories. I'd like to limit folder the recursion. My idea is to filter the files in the select event of Upload by doing something like:
e.files = ko.utils.arrayFilter(e.files, function(item) { return self._count(item.rawFile.webkitRelativePath, '/') === 1; }
Obviously this does not work and all the elements are added to the uploader. Is there a way to filter individual files when selecting them?
Thanks.