wrong parameter was passed to the form_attach_new_file function

$object is passed to the form_attach_new_file, but it should be $member.