gwt - Multiple gwtupload component on same page -


i'm using gwtupload lib uploading file(s) in gwt project. https://code.google.com/p/gwtupload/wiki/gwtupload_gettingstarted

case: i've 3 - 4 multiuploader on same page. uploading fine. when try upload same file in other component not allowing. figured out if click on remove button maintained gwtupload. allow upload same file on other component. how fire remove button click. check image attached below. enter image description here

after digging down source code of gwtupload. found solution. if want have multiple singleuploader or multiuploader on same page. need change below lines , need create .jar file of gwtupload.

private static hashset<string> filedone = new hashset<string>(); private static hashset<string> fileuploading = new hashset<string>(); private static list<string> filequeue = new arraylist<string>();  

to (remove static)

private hashset<string> filedone = new hashset<string>(); private hashset<string> fileuploading = new hashset<string>(); private list<string> filequeue = new arraylist<string>(); 

in file uploader.java located in package gwtupload.client


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -