Skip to content

Commit

Permalink
remove size check (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Oct 2, 2024
1 parent 93c8c95 commit 04eae7a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 04eae7a

Please sign in to comment.