mobilesfeatures / gwtupload

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

Uploading Multiple Files #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Manuel,
Awesome Project. This is not exactly a defect per say. I just wanted to know 
why uploading multiple files at same time is disabled. This is what I am trying 
to do.
[CODE]
        SingleUploader uploader1 = new SingleUploader();
        SingleUploader uploader2 = new SingleUploader();
        IButton button = new IButton("Submit");
        button.addClickHandler(new ClickHandler(){
            @Override
            public void onClick(ClickEvent event)
            {
                uploader1.submit();
                uploader2.submit();
            }
        });
[/CODE]
On click of the button I am trying to submit both the files which right now 
uploads the first file and prompts an active upload for the second file. Is it 
possible to upload both files concurrently (am I missing something which would 
enable that) or is it disabled due to some reason. If so can I know the 
reasons?.
Sorry, for posting it in the issues. I did not know where else I could post 
this.

Thanks
- V Kiran Kumar

Original issue reported on code.google.com by veeravel...@gmail.com on 6 Jan 2011 at 9:54

GoogleCodeExporter commented 8 years ago
Hello, this feature is disabled in gwtupload for many reasons:
- Most browsers only open two simultaneous connections with a server, and I 
need both, one for sending the file and other for the ajax requesting progress
- Parallel uploading overloads the server
- Coding in client side is much complicated
- Uploading several files at some time does normally not speed up uploading.
So when a file is being uploaded the rest are queued.

You can not open the choose dialog as you want, so it is necessary the user 
clicking on the fileinput.

Original comment by manuel.carrasco.m on 7 Feb 2011 at 6:29

GoogleCodeExporter commented 8 years ago

Original comment by manuel.carrasco.m on 7 Feb 2011 at 6:29

GoogleCodeExporter commented 8 years ago

Original comment by manuel.carrasco.m on 13 Feb 2011 at 12:31