ajimix/asana-api-php-class — pull request #27 by mnunes01 (2014-07-25 15:18:09+00:00)
Title: update to method addAttachmentToTask

added compatibility fallback to PHP version lower than 5.5.
added mymetype and finalFilename to the attached file.
usage: (ie: $asana->addAttachmentToTask( $taskId, array('file' => $_FILES['datafile']['tmp_name'], 'finalFilename' => $_FILES['datafile']['name'], 'mymeType' => $_FILES['datafile']['type']));