Question

I have an input of type=file in my Backbone view, which is not associated to any property in my Backbone model. When I choose a file, there is something in Backbone clearing it, but I cannot find what (I handle the element's change event, and the element receives the value of the chosen file, but it is then cleared). I was wondering if I should handle the view rendering somehow. Thank you for pointing me to the right direction.

Was it helpful?

Solution

It turned out the jQuery upload plugin got in the middle. It was uploading files automatically when selected in the file input, and thus clearing the field. It was not Backbone. Thank you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top