Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Send-OfficeConfluenceAttachment

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Confluence.ConfluenceAttachment

Uploads or versions a Confluence page attachment.

Syntax

Send-OfficeConfluenceAttachment
[-Comment <String>]
[-ContentType <String>]
[-FileName <String>]
[-MinorEdit <Boolean>]
-PageId <String>
[-Path] <String>
-Session <ConfluenceSession>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Upload a generated report workbook.

Send-OfficeConfluenceAttachment -Session $session -PageId 12345 -Path .\report.xlsx -Comment 'Daily refresh'

Uses Confluence's multipart attachment endpoint without automatically retrying the write.

Parameters

-Comment String optional
Optional attachment version comment.
-ContentType String optional
MIME content type.
-FileName String optional
Optional attachment file name. Defaults to the local file name.
-MinorEdit Boolean optional
Whether the attachment update is a minor edit.
-PageId String required
Page identifier.
-Path String requiredposition: 0
Local file to upload.
-Session ConfluenceSession required
Configured Confluence session.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.