title: File upload: Uncaught Error: InvalidStateError: DOM Exception 11
body: <p>I had an element <code>&lt;input type="file" name="name" id="name" value="&lt;%= name %&gt;" &gt;</code> and I got the error <code>Uncaught Error: InvalidStateError: DOM Exception 11</code>. I read that adding a value to an input element of type 'file' can cause this error so I removed the value attribute but I get the same error. I haven't done anything but add this element to my form so the other solutions I saw didn't seem relevant to me. What could cause uploading a file using that element to give this error?</p>
  
  <p>If it matters, this is in a backbone template file with extension .jst.ejs</p>
  
  <p>If you don't know why, maybe you can help with debugging? What I'm doing now is using Chrome dev tools to step through the jQuery and Javascript files and this isn't really helping. Are there more efficient ways to debug this?</p>