From c993a51d4049b2c2e086059a6daf53f77aa00f6c Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Mon, 30 Sep 2024 17:50:20 -0700 Subject: [PATCH] remove size check --- pkg/handlers/handlers.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/handlers/handlers.go b/pkg/handlers/handlers.go index 3b183733748f..dd3d43144c52 100644 --- a/pkg/handlers/handlers.go +++ b/pkg/handlers/handlers.go @@ -285,12 +285,7 @@ func HandleFile( } defer rdr.Close() - size, err := rdr.Size() - if err != nil { - ctx.Logger().Error(err, "error getting file size") - } - - ctx = logContext.WithValues(ctx, "mime", rdr.mime.String(), "size_bytes", size) + ctx = logContext.WithValues(ctx, "mime", rdr.mime.String()) mimeT := mimeType(rdr.mime.String()) config := newFileHandlingConfig(options...)