mirror of
https://github.com/pgsty/minio.git
synced 2026-08-11 00:33:28 +03:00
browser: Object upload should save metadata and notify. (#2309)
Object upload from browser should save additional incoming metadata. Additionally should also notify through bucket notifications once they are set. Fixes #2292
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
ad19bf0ec1
commit
65f71ce0c5
+1
-1
@@ -397,7 +397,7 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h
|
||||
writeSuccessResponse(w, encodedSuccessResponse)
|
||||
|
||||
// Load notification config if any.
|
||||
nConfig, err := api.loadNotificationConfig(bucket)
|
||||
nConfig, err := loadNotificationConfig(api.ObjectAPI, bucket)
|
||||
// Notifications not set, return.
|
||||
if err == errNoSuchNotifications {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user