fix: relax enforcing filename on PostPolicy (#18336)

The filename is not required to be on the form data.
This commit is contained in:
Daniel López Guimaraes
2023-10-31 04:06:32 +00:00
committed by GitHub
parent ac8c43fe9c
commit a1792ca0d1
2 changed files with 34 additions and 8 deletions

View File

@@ -983,7 +983,7 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h
}
var b bytes.Buffer
if fileName == "" {
if name != "file" {
if http.CanonicalHeaderKey(name) == http.CanonicalHeaderKey("x-minio-fanout-list") {
dec := json.NewDecoder(part)