wbstr / vaadin-multifileupload

12 stars 23 forks source link

Cannot upload the same file or set of files consecutively (Chrome) #35

Open chris-maclean opened 8 years ago

chris-maclean commented 8 years ago

Uploading the same file or files with two consecutive presses of the uploader button does not appear to do anything. Neither the handleFile nor the finished handlers are fired. Choosing a different set of files works normally. This doesn't happen in Firefox.

Steps to reproduce:

  1. Use Chrome
  2. Click the Upload button
  3. Select one or more files
  4. Click the "Open" button in the file system dialog
  5. Observe whatever actions occur in the handlers
  6. Click the Upload button again
  7. Select the same files as in (2)
  8. Click the "Open" button in the file system dialog
  9. Observe that nothing happens
  10. Click the Upload button again
  11. Select files different from (2) and (6)
  12. Click "Open"
  13. Observe the correct actions from the handlers

The issue "rolls" with the sequence of actions. In other words, after step 12, selecting the files from step 2 will again work normally, but selecting the files from step 10 will not.

juger89 commented 8 years ago

Browser event in Chrome become ONFOCUS instead of ONCHANGE if selecting the same files as before, so the input won't submitted. To avoid this problem, I've set input value to null after files have been submitted.

juger89 commented 7 years ago

The bug still exists in case of creating single upload. :(