Dpawluk attachmentfix

Fixes current method for uploading attachments by adding necessary configuration options for the curl options used when making a POST request.