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

Only one CUSTOM FileUploader per time useable #24

Open
kartenkarsten opened this issue Jul 1, 2016 · 0 comments
Open

Only one CUSTOM FileUploader per time useable #24

kartenkarsten opened this issue Jul 1, 2016 · 0 comments

Comments

@kartenkarsten
Copy link

kartenkarsten commented Jul 1, 2016

It is not possible to use more than one FileInputType.CUSTOM (it's a modifiable singelton)
Reproduce:

AddButton a = new AddButton().withRandomId();
FileInputType fileInputType = FileInputType.CUSTOM.with( a );
MultiUploader mu1 = new gwtupload.client.MultiUploader( fileInputType);

AddButton b = new AddButton().withRandomId();
FileInputType fileInputType2 = FileInputType.CUSTOM.with( b );
MultiUploader mu2 = new gwtupload.client.MultiUploader( fileInputType2);

now you will find that in mu2.fileInputType.widget and mu1.fileInputType.widget is b located and a is not referenced anymore.

Result:
uploader will be reinstanceiate after file selection. Therefore the button will be removed and add ed into the new upload Formular. The Problem is: it's the same Button for all uploaders - all are removed! but it will be reassigned only to one uploader => missing Buttons.

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