diff --git a/src/Jira/Api.php b/src/Jira/Api.php index 2c642a5..9292ba4 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -433,7 +433,7 @@ public function createAttachment($issue, $filename, $options = array()) { $options = array_merge( array( - "file" => '@' . $filename, + "file" => '@' . $filename . ';filename=' . pathinfo($filename, PATHINFO_BASENAME), ), $options );