mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: relax enforcing filename on PostPolicy (#18336)
The filename is not required to be on the form data.
This commit is contained in:
committed by
GitHub
parent
ac8c43fe9c
commit
a1792ca0d1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user