Skip to content

publish: split post form data and files#1186

Merged
jdknight merged 1 commit into
mainfrom
correct-post-attachment-publish
Jun 2, 2026
Merged

publish: split post form data and files#1186
jdknight merged 1 commit into
mainfrom
correct-post-attachment-publish

Conversation

@jdknight

@jdknight jdknight commented Jun 2, 2026

Copy link
Copy Markdown
Member

When posting file attachments, this extension historically (since v1.0) published both form and file data through Requests files option. This may not have been proper, but has functioned for some time when interacting with stock Confluence Cloud and Confluence Data Center editions.

However, recent reports from users have hinted in server processing errors where a Java Spring Framework's CommonsMultipartFile usage complains. Unknown if a result of newer framework versions or its use with specific Marketplace addons.

No matter the case, this commit aims to correct the post requests when uploading attachment data. This commit ensures any form data is published using Requests data argument, and files using files argument. Initial testing with Confluence Cloud and Confluence Data Center v10.2.11 show success in publication.

When posting file attachments, this extension historically (since v1.0)
published both form and file data through Requests `files` option. This
may not have been proper, but has functioned for some time when
interacting with stock Confluence Cloud and Confluence Data Center
editions.

However, recent reports from users have hinted in server processing
errors where a Java Spring Framework's `CommonsMultipartFile` usage
complains. Unknown if a result of newer framework versions or its use
with specific Marketplace addons.

No matter the case, this commit aims to correct the post requests when
uploading attachment data. This commit ensures any form data is
published using Requests `data` argument, and files using `files`
argument. Initial testing with Confluence Cloud and Confluence Data
Center v10.2.11 show success in publication.

Signed-off-by: James Knight <git@jdknight.me>
@jdknight
jdknight merged commit 4272949 into main Jun 2, 2026
27 checks passed
@jdknight
jdknight deleted the correct-post-attachment-publish branch June 2, 2026 01:42
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.

1 participant