ojamin/SharePoint Upload (PowerShell)

Upload files from a local folder to a SharePoint document library via Microsoft Graph.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tenant-idAzure AD tenant ID.yes
client-idAzure AD app (client) ID.yes
client-secretAzure AD app client secret. Pass from a GitHub secret.yes
site-urlFull SharePoint site URL (for example, https://contoso.sharepoint.com/sites/Finance).yes
library-nameSharePoint document library name.yes
source-pathLocal folder path on the runner to upload from.yes
include-patternsComma or newline separated file patterns.no*
recurseRecursively include subdirectories.nofalse
destination-folderDestination folder path inside the document library root.no""
preserve-relative-pathPreserve folder structure relative to source-path.nofalse
include-hiddenInclude hidden and system files.nofalse
follow-reparse-pointsFollow reparse-point directories (symlinks/junctions).nofalse
conflict-behaviorConflict behavior for upload sessions (replace, rename, fail).noreplace
chunk-size-mibChunk size in MiB for upload sessions.no10
upload-session-threshold-mibUse upload sessions for files at or above this size in MiB.no10
max-retriesMaximum retry attempts for retryable upload calls.no8
initial-backoff-secondsInitial retry backoff in seconds.no2
graph-endpointMicrosoft Graph base endpoint.nohttps://graph.microsoft.com

no outputs