DWR

Transfering a file using DWR 3.0 disables the "input" events

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Normal Normal
  • Resolution: Unresolved
  • Affects Version/s: 3.0.RC2
  • Fix Version/s: 3.0.1
  • Component/s: File Upload/Download
  • Description:
    Hide
    I connect the "onchange" event of an "<input type="file" >", when I call a function that transfers the file to the server all works fine (the callback function is executed), but the input doesn't fire the 'onchange' event anymore.

    You can find more details on https://dwr.dev.java.net/servlets/ReadMsg?list=users&msgNo=17281

    > DWR pollutes the file object attributes and changes it's name prior to
    > posting it so it clones it and swaps prior to doing a post. I guess we could
    > be smarter here and revert the original back to it's original state instead.


    Show
    I connect the "onchange" event of an "<input type="file" >", when I call a function that transfers the file to the server all works fine (the callback function is executed), but the input doesn't fire the 'onchange' event anymore. You can find more details on https://dwr.dev.java.net/servlets/ReadMsg?list=users&msgNo=17281 > DWR pollutes the file object attributes and changes it's name prior to > posting it so it clones it and swaps prior to doing a post. I guess we could > be smarter here and revert the original back to it's original state instead.

Activity

Hide
Samuel Vogel added a comment - 29/May/11 7:37 AM

This is extremly annoying when working with the onChange event of file inputs.

Before the first upload, the events work fine. But once you upload a file, none of the events that were bound to the file input dom element fire any longer.

Show
Samuel Vogel added a comment - 29/May/11 7:37 AM This is extremly annoying when working with the onChange event of file inputs. Before the first upload, the events work fine. But once you upload a file, none of the events that were bound to the file input dom element fire any longer.

People

Dates

  • Created:
    25/Jun/09 3:36 PM
    Updated:
    29/May/11 7:37 AM