You are missing the name attribute in the <input> element.
name
<input>
You should add the following line :
<input type="file" id="file" name="file">