且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C#中使用REST API将附件发布到Jira

更新时间:2022-02-11 21:29:59

据我所知,您的问题出在Content-Disposition标头中. RFC-1867 要求表单数据名称为文件" ,仅此而已.有关更多详细信息,请参阅Atlassian论坛上的帖子: https://answers.atlassian.com/questions/104822/jira-rest-api-attachment-incoherent-result .

From what I can see, your problem is in the Content-Disposition header. RFC-1867 expects the form-data name to be "file" and nothing else. For more details, look at the post on Atlassian Forums: https://answers.atlassian.com/questions/104822/jira-rest-api-attachment-incoherent-result.

您可以查看我在重复帖子中提供的答案: https://***.com/a/18489214/424059

You may take a look at my answer provided on the Duplicate post: https://***.com/a/18489214/424059