The "/attachadd" page:
Add a new attachment.
tkt=HASH page=WIKIPAGE technote=HASH forumpost=HASH from=URL
Adds a POSTed file attachment to the given target.
Or the "version 2" interface:
target=ATTACHMENT_TARGET
Behaves as documented for attachaddV2_page().