putFile returns EventEmmitter which does not have .end