You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to upload files using Invoke-WebRequest method but no success so far... it seems that using -Form @{avatar =Get-Item avatar.png fails and gives server error as the avatar key wasn't provided...
Update the UploadFIle docs to reference using
curl
to upload files from the CLI, ie:curl http://localhost:8080/upload -F name=john -F avatar=@"C:\path\to\some\picture.png"
This will upload the file, as a form, and allow
Save-PodeRequestFile
to work.Extra:
Investigate doing the same with
Invoke-RestMethod
, but it seems it doesn't work properly.The text was updated successfully, but these errors were encountered: