Skip to content
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

Define content-type header in IssuesService.AttachFileToIssue #87

Closed
bouil opened this issue Jul 8, 2019 · 2 comments
Closed

Define content-type header in IssuesService.AttachFileToIssue #87

bouil opened this issue Jul 8, 2019 · 2 comments
Assignees

Comments

@bouil
Copy link

bouil commented Jul 8, 2019

Using YouTrackSharp 2019.1.0.0

Expected behavior

  • Using IssueService.AttachFileToIssue with an XLSX file.
  • Document is uploaded.
  • When downloading the file from Youtrack, it's expected to be able to have the correct content type header

Actual behavior

  • File is served as a ZIP file.

Possible fix ?

Allow uploader to specify content type in the MultipartFormDataContent object in the AttachFileToIssue metehod

@maartenba maartenba changed the title issuesService.AttachFileToIssue : no way to define content-type Define content-type header in IssuesService.AttachFileToIssue Jul 8, 2019
@maartenba maartenba self-assigned this Jul 8, 2019
@maartenba
Copy link
Collaborator

Fixed (pending validation on NuGet.org)

@bouil
Copy link
Author

bouil commented Jul 8, 2019

Thanks, I confirm that your commit fixes the issue.

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

No branches or pull requests

2 participants