My form, 'file-upload' has a submit button:
<button id="btn-save" type="submit">Save</button>
I use it like so:
$('#file-upload').submit(this.save.bind(this));
The problem is, my form has other buttons in it:
<button class="btn-delete">×</button>
And these appear to be running the this.save method.
How can I prevent this?