You can't. it's a known issue when you use a custom edited form as theNewForm.aspx or the EditForm.aspx of a list. Only the default formallows attachments.