The particular API I'm using is meant to be used with cURL like
$ curl -F "file=@test.txt" https://file.io/?expires=1w
I can't figure out how to emulate the "-F" using PowerShell.
powershell Invoke-RestMethod -Uri 'https://website.com' -Method POST -InFile .\file.txt
We don't need to use Invoke-RestMethod
if there's an easier way. I'm open to suggestions.
No comments:
Post a Comment