wbstr / vaadin-multifileupload

12 stars 23 forks source link

setPollInterval enable when upload start and stop when upload finished #30

Closed SergejSorli closed 8 years ago

SergejSorli commented 8 years ago

Hi,

We are searching for approach to limit traffic which is using a lot resources in our server. The problem is setPollInterval in Vaadin framework. We would like to disable or set setPollInterval to a minute interval in Vaadin application because we get huge traffic "POST UUID 200 490" between clients and apache proxy and application server. But then multi-upload component doesn't refresh correctly. Solution for this problem is show in the flowing steps: 1.User click upload file 2.User attach file 3.Component recognize the upload file is being started and set setPollInterval to 1 second 4.Upload components finish uploading file and UploadFinishedHandler is being called 5.in UploadFinishedHandler we set setPollInterval back to minute.

This approach only need to implement interface UploadStartedHandler which is called after upload starts. And it will also solve problem Uploadwindow hangs bug. Or do you suggest better approach? Thank you

Best regards, Sergej