“On file dialog cancel” event in JavaScript

后端 未结 2 1881
野趣味
野趣味 2021-01-17 16:01

I have a file input:


Function \'foo\' is called only when user chooses some f

2条回答
  •  粉色の甜心
    2021-01-17 16:42

    I think that the best way if you can change a bit your code, is adding plugins to add files, for example:

    http://swfupload.org/

    or

    http://www.uploadify.com

    these are the more common, I'd work with the first and I had no problems.

    This will not do exactly what you want, but you can add files in a queue and then cancel them, and you can capture this event...

    I know that is not what you was looking for, but is the best solution I can give you

    good luck! I hope I've helped you

提交回复
热议问题