mirror of
https://github.com/pgsty/minio.git
synced 2026-10-06 17:55:59 +03:00
Presigend Post: Error out when File is not found (#3723)
Follow S3 behavior when no File is sent in the presigned post request form.
This commit is contained in:
committed by
Harshavardhana
parent
6800902b43
commit
c9b1468c3b
@@ -428,6 +428,12 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h
|
||||
return
|
||||
}
|
||||
|
||||
// Check if file is provided, error out otherwise.
|
||||
if fileBody == nil {
|
||||
writeErrorResponse(w, ErrPOSTFileRequired, r.URL)
|
||||
return
|
||||
}
|
||||
|
||||
// Close multipart file
|
||||
defer fileBody.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user