diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index a1d1550b5d..cca4b0e026 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -322,9 +322,9 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa // recheck under the lock: WORM may have been enabled during the upload if enforced, wormErr := fs.wormEnforcedForEntry(ctx, path); wormErr != nil { - return nil, wormErr, nil + return nil, wormErr, uncommittedChunks } else if enforced { - return nil, errors.New(constants.ErrMsgOperationNotPermitted), nil + return nil, errors.New(constants.ErrMsgOperationNotPermitted), uncommittedChunks } inlineAppendHandled := false