Skip to content

Never match MD5 for gzipped file types #6

@alanjds

Description

@alanjds

It only works for non-gzipped files, as the MD5 is calculated from .read() of original file, and S3 ETAG if for the uploaded file, gzip-encoded if GZIP=True.

I tried to patch for both cases, but had not worked for some unknown reason (for me at least). I tried to hashlib.md5(self.storage._compress_content(source_storage.open(path).read())).hexdigest(), but it never give me the same answer as the ETAG.

Weird. I give up for now. Better luck next coder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions