Skip to content

Add-JiraIssueAttachment can not upload binary attachments #526

@johan-kummeneje-complior

Description

Description

When uploading a zip or xslx file with Add-JiraIssueAttachment it will be posted as iso-8859-1 text instead of binary, which makes the attachment unreadable.

Steps To Reproduce

create a zip-file or xlsx file and upload it. It will upload but the file will be broken.

Expected behavior

File can be opened from issue

Screenshots

Your Environment

Get-Module JiraPS -ListAvailable | Select Name, Version

Name Version


JiraPS 2.14.7

$PSVersionTable
Name Value


PSVersion 7.4.6

Possible Solution

better detection of binary files in function and setting fileenc to the correct value, or at least be able to add a flag to the function to set fileenc to binary (or similar).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions