Skip to content

Commit 96ab84e

Browse files
committed
Uploaded attachment's name is just the file name itself instead of the full path.
1 parent cdc8416 commit 96ab84e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jira/Api/Client/CurlClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ public function sendRequest(
133133
protected function getCurlValue($fileString)
134134
{
135135
if (!function_exists('curl_file_create')) {
136-
return $fileString;
136+
return $fileString . '; filename=' . basename($fileString);
137137
}
138138

139-
return curl_file_create(substr($fileString, 1));
139+
return curl_file_create(substr($fileString, 1), null, basename($fileString));
140140
}
141141
}

0 commit comments

Comments
 (0)