GWT SingleUploader gets stuck

59 views
Skip to first unread message

ahmdt

unread,
Jun 30, 2020, 9:52:36 AM6/30/20
to GWT Users
When I upload a file using SingleUploader or MultiUploader, the file gets uploaded but the uploader's progress bar gets stuck at 0% for a very, very long time.

When I try to upload a second file in the same session, I get this message:
 
There is already an active upload, try later. 


This is my code:

final SingleUploader uploader = new SingleUploader();
uploader.setAutoSubmit(false);
uploader.setMultipleSelection(false);
uploader.setValidExtensions(".log");
uploader.setServletPath("/reprocess/"+userTestXml);
uploader.avoidRepeatFiles(false);


 Any advice here?

Colin Alworth

unread,
Jun 30, 2020, 10:27:47 AM6/30/20
to GWT Users
It looks like this isn't part of GWT itself, but an external library. Here's a stackoverflow post i found from a few years ago that seems to address your issue: https://stackoverflow.com/questions/31424639/gwt-error-when-uploading-file-with-singleuploader

It looks like the project might live on in github, but there has been minimal activity there: https://github.com/manolo/gwtupload/. Check the network of forks for more updated versions to see if one of them might be the "new home" for this project? https://github.com/manolo/gwtupload/network

ahmdt

unread,
Jun 30, 2020, 12:07:22 PM6/30/20
to GWT Users
Thanks very much.

I was using it because it allows me to modify the uploaded file name from the client's side. Is it possible to do that using FileUpload?
Reply all
Reply to author
Forward
0 new messages