Don't set this here. Let the form take care of it when you createInput( 'file' ... );