◐ Shell
clean mode source ↗

Fix Invoke-RestMethod to support read-only files in multipart form data by yotsuda · Pull Request #26454 · PowerShell/PowerShell

Fixes PowerShell#25482

Changed FileStream to use FileAccess.Read when uploading files via -Form parameter, allowing read-only files to be uploaded successfully.

iSazonov

@yotsuda

@iSazonov iSazonov added the CL-General

Indicates that a PR should be marked as a general cmdlet change in the Change Log

label

Nov 15, 2025

@yotsuda yotsuda marked this pull request as ready for review

November 15, 2025 09:48

iSazonov

@yotsuda

iSazonov

@yotsuda

iSazonov

@yotsuda yotsuda deleted the fix/invoke-restmethod-readonly-file branch

November 18, 2025 13:09

SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request

Dec 12, 2025

kilasuit pushed a commit to kilasuit/PowerShell that referenced this pull request

Jan 2, 2026

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026