|
|
@ -454,6 +454,7 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req |
|
|
|
} |
|
|
|
} |
|
|
|
writeSuccessResponse(w, nil) |
|
|
|
writeSuccessResponse(w, nil) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if eventN.IsBucketNotificationSet(bucket) { |
|
|
|
// Fetch object info for notifications.
|
|
|
|
// Fetch object info for notifications.
|
|
|
|
objInfo, err := api.ObjectAPI.GetObjectInfo(bucket, object) |
|
|
|
objInfo, err := api.ObjectAPI.GetObjectInfo(bucket, object) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -461,7 +462,6 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if eventN.IsBucketNotificationSet(bucket) { |
|
|
|
|
|
|
|
// Notify object created event.
|
|
|
|
// Notify object created event.
|
|
|
|
eventNotify(eventData{ |
|
|
|
eventNotify(eventData{ |
|
|
|
Type: ObjectCreatedPut, |
|
|
|
Type: ObjectCreatedPut, |
|
|
@ -795,6 +795,7 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
w.Write(encodedSuccessResponse) |
|
|
|
w.Write(encodedSuccessResponse) |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if eventN.IsBucketNotificationSet(bucket) { |
|
|
|
// Fetch object info for notifications.
|
|
|
|
// Fetch object info for notifications.
|
|
|
|
objInfo, err := api.ObjectAPI.GetObjectInfo(bucket, object) |
|
|
|
objInfo, err := api.ObjectAPI.GetObjectInfo(bucket, object) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -802,7 +803,6 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if eventN.IsBucketNotificationSet(bucket) { |
|
|
|
|
|
|
|
// Notify object created event.
|
|
|
|
// Notify object created event.
|
|
|
|
eventNotify(eventData{ |
|
|
|
eventNotify(eventData{ |
|
|
|
Type: ObjectCreatedCompleteMultipartUpload, |
|
|
|
Type: ObjectCreatedCompleteMultipartUpload, |
|
|
|