Fix: 'file' event.

Emit the 'file' event with fieldname and file data.