Upload files via PowerShell Invoke-Webrequest

Created on 18 January 2023, almost 2 years ago

Problem/Motivation

I am looking for a way to automate a file upload for a user who uploads a file the replaces the previously uploaded file on a weekly basis. Can someone provide me with the endpoint and any other headers potentially needed to upload a file to a specific folder?

I can currently login and save the session to a sessionvariable to be reused in the invoke-webrequest cmdlet and I've located what I believe to be the endpoint for the folder I would like the file to be uploaded to. The trouble comes when I attempt to upload the file to the destination.

Can someone assist, please?

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024