Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-ordering iterated valid files #15

Open
ghost opened this issue Feb 12, 2015 · 1 comment
Open

Re-ordering iterated valid files #15

ghost opened this issue Feb 12, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 12, 2015

Is there a good way to modify the positions/index of the files iterated from interface.getFiles() so that the files are uploaded in the order selected by users? I would like users to visually drag and drop files to re-order them so I need to have the re-ordered changes bound to the view.

I tried to re-order the files by directly setting the DropletModel of a given index with a different DropletModel, but that didn't work: $scope.interface.getFiles($scope.interface.FILE_TYPES.VALID)[index] = data;

@Wildhoney
Copy link
Owner

We'd need to modify the code where the files are appended to the form – although I'm not entirely sure on the best approach for this currently. I'll have a think 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant