Class S3ETag
Normalises S3 ETags at the endpoint boundary.
Inherited Members
Namespace: CoreUpload.Providers
Assembly: CoreUpload.dll
Syntax
public static class S3ETag
Remarks
The browser client already strips quotes, but it is not the only possible
caller, and ListParts echoes ETags straight from S3 in their quoted
form. Leaving both shapes in play meant a signer built against one of them
could mis-compare parts or emit <ETag>""abc""</ETag> on
completion — accepted by AWS, rejected by several S3-compatible services
(MinIO, R2). Normalising once, here, keeps that inconsistency out of every
customer-written signer.
Methods
Normalize(string?)
Strips surrounding whitespace and quotes; null/blank becomes empty.
Declaration
public static string Normalize(string? eTag)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eTag |
Returns
| Type | Description |
|---|---|
| string |