REST API authentication added
Attachment upload fix