Added "multipart" key

Added "multipart" key to set the type of the multipart when adding attachment.

Rationale is provided as comment.

It should have no impact on existing features.

Documentation is included.

Best wishes