0

当我一次选择多个文件(Image1 和 Image2)时,我只看到一个进度条,如下所示:

在此处输入图像描述

我的上传小部件看起来像这样

 uploader = new Uploader();
 uploader.addOnFinishUploadHandler(uploadHandler);
 uploader.avoidRepeatFiles(true);
 uploader.setAutoSubmit(true);
 uploaderPanel.add(uploader);
 progressBar = new ModalUploadStatus();
 uploader.setStatusWidget(progressBar);

在服务器端,我没有使用任何自定义 servlet。有什么建议么 ?

我正在使用 GWTupload 1.0.1 和 GWT 2.4.0

编辑

上传者似乎将这两个文件作为一个包上传。这是我在上传过程中得到的日志:

INFO: server response transferred  14/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  14/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:55 EDT 2015 Gwt client Uploader
INFO: server response transferred  26/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  26/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:55 EDT 2015 Gwt client Uploader
INFO: server response transferred  33/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  33/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:56 EDT 2015 Gwt client Uploader
INFO: server response transferred  44/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  44/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:56 EDT 2015 Gwt client Uploader
INFO: server response transferred  52/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  52/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:57 EDT 2015 Gwt client Uploader
INFO: server response transferred  63/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  63/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:57 EDT 2015 Gwt client Uploader
INFO: server response transferred  70/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  70/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:58 EDT 2015 Gwt client Uploader
INFO: server response transferred  81/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  81/1407 [Image1.jpg, Image2.jpg]
INFO: Mon Jun 01 10:39:58 EDT 2015 Gwt client Uploader
INFO: server response transferred  89/1407 [Image1.jpg, Image2.jpg]
INFO: server response transferred  89/1407 [Image1.jpg, Image2.jpg]
...
4

0 回答 0