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

multi_selection false, select a other file, when upload, the first file uploaded #1658

Open
zeroone2005 opened this issue Mar 26, 2023 · 1 comment

Comments

@zeroone2005
Copy link

zeroone2005 commented Mar 26, 2023

multi_selection false, select a other file, queue two files not one.

how can i clean the queue before file added

@flatgreen
Copy link

Hello,
In my project :
with multi_selection: false

uploader.bind('FilesAdded', function (up, files) {
    if (files.length >1) {
        up.removeFile(files[0]);
    }
    // let file = files[0]; if you want to do something with file
    uploader.start();
});

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

2 participants