jijo-paulose / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

Multiple instance of multiuploader is not working. #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add two multiuploader instance in your page.
2. Upload one file from one multiuploader.
3. Same time try to upload another file from multiuploader.
4. Response says "listener is null" and then timeout and cancel.

What is the expected output? What do you see instead?
1. It should successfully upload both the files.
2. One more observation although both are separate multiuploader second 
multiuploader is not uploading file in parallel, it waits to finish first.

What version of the product are you using? On what operating system?
Windows, 0.6.6 and 0.6.7 Snapshot GWTUpload

Please provide any additional information below.

Original issue reported on code.google.com by ankurps...@gmail.com on 19 Aug 2013 at 10:42

Attachments:

GoogleCodeExporter commented 8 years ago
I badly need fix for above problem. Please provide fix/solution as soon as 
possible.

Original comment by ankurps...@gmail.com on 19 Aug 2013 at 10:45

GoogleCodeExporter commented 8 years ago
Listener is null means that there are session issues, and in server side the 
servlet was unable to get the listener when sending ajax requests. GWTUpload 
sends a request at the beginning to set the session cookie and send it in POST 
and GET requests. 

Check that you servlet container support sessions, and check if gwtupload sends 
the GET to start the session before sending the POST in firebug. Cookies in all 
requests must be the same.

I have double checked that multiple uploaders can be in the same page, check 
the example at: 
http://gwtupload.alcala.org/gupld/gwtuploadsample.MultipleUploadSample/MultipleU
ploadSample.html and you will see that you can use simultaneous uploaders in 
the same page and all selected files go uploaded.

If you have a simple eclipse project which can demonstrate the issue in 
dev-mode or deploying in jetty, attach it an I will take a look, I cannot use 
your attached classes because they are using other libraries apart from gwt and 
gwtupload.

Gwtupload does not support uploading in parallel by design and because several 
things already discussed here. Mainly because we only can have a listener in 
server side to track the upload, secondly because after a test we did some time 
ago, uploading in parallel didn't perform better than uploading each file one 
after another.

Dont use gwtupload at the same time in two different tabs of your browser, 
because two POSTS at the same time would cause that the second one remove the 
listener of the first one.

Original comment by manuel.carrasco.m on 30 Oct 2013 at 9:44

GoogleCodeExporter commented 8 years ago

Original comment by manuel.carrasco.m on 31 Dec 2013 at 4:36