CoreUpload
Search Results for

    Show / Hide Table of Contents

    Class S3ETag

    Normalises S3 ETags at the endpoint boundary.

    Inheritance
    object
    S3ETag
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In this article
    Back to top CoreUpload API ReferenceUploader family: AjaxUploader, CoreUpload, MultipleUpload, ASPUploader, and PHP File Uploader.