-
Notifications
You must be signed in to change notification settings - Fork 32
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
Multiple drag&drop #60
Comments
Hi @santer545 . Can you please provide reproducing steps. I just verified, drag and droppped 2 files, all file uploaded. Then did same step again. Can you listen to uploadSuccess or uploadFail to debug? |
I add drag and drop , but I didn`t use the enableAutoUpload, I set it it false, so I listened onFileAdded, and at first I cannot upload multiple files and saw only one added file, after that I try one more time and multiple added worked, so I catch this problem only then I do it first time |
And also , I didn`t use adpater. Is it required?
|
@santer545 I tried same steps as you. Disabled enableAutoUpload, added 2 files by dragging or choosing file. Listened to fileAdded event and see those files. Are you listening to validationError event ? Also are you using latest package version? |
So, after 2 long days of debugging, I found the issue... When I using angular material, and any of its modules, at the first attempt, drag and drop loads only one file, the second time everything is fine. I have Angular 7 and Angular Material 7. If you know how to help me, I will be grateful! |
Also, I am sure , that MatTable module broke the functionality, if you add material table on page with your drag and drop |
Hi , could you please try with latest library version 12 and share info. Thanks in advance! |
Hi, i have same issue. You can reproduce it with StackBlitzDemo from first page : https://stackblitz.com/edit/ngx-awesome-uploader?file=src%2Fapp%2Fsimple-demo%2Fsimple-demo.component.ts Just disable cropper and drag&drop 2 files with last version of Chrome. Works fine with Firefox. I'm on 12.0.2 version. |
This fail to me too and I'm not using Material and auto upload is activated. Here is my adapter, this only simulates server side loading advance:
Is there any workaround or fix? BR |
So I tried to reproduce it, by same url @iniesta333 suggested, disabled cropper, added 2 files via drag and drop. It uploaded 2 files as expected. |
I reproduce on my project too. After some debugging the issue seems to appear on the Why are you using setTimeout here ? When using this kind of trick it's usually that you have an issue with asynchronous calls.
And indeed, it's seems that files are pushed in |
Should be fixed from v16.0.1. |
Than I drag several files at first, uploaded only one, but second time it work as expected. Please help
The text was updated successfully, but these errors were encountered: