Skip to content

Fix create attachments for PHP 5.5 #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

Fix create attachments for PHP 5.5 #47

wants to merge 7 commits into from

Conversation

DerMika
Copy link
Contributor

@DerMika DerMika commented Jun 25, 2015

I was having problems with the createAttachment() using PHP 5.6. Turns out there is a new way to handle file uploads in Curl from PHP 5.5 and above: the function curl_file_create().

I also provided a way to specify the file name you want to use in Jira for the attachment you're uploading. It shouldn't break existing code, it's an optional parameter. If unused the filename defaults to basename() of the file you provide.

And I improved on some PHPDocs. Sorry, it's a fetish of mine...

@aik099
Copy link
Member

aik099 commented Feb 27, 2016

Thank you.

If that doesn't work for you, please open another issue.

@aik099 aik099 closed this Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants