Problem/Motivation

When a file is written to, its file size still report the size before the write. This is the result of keeping the metadata cache entry for the file after it has been overwritten.

Proposed resolution

In AmazonS3StreamWrapper::stream_flush, delete the cache entry when the object creation request succeed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pbuyle’s picture

Status: Active » Needs review
FileSize
849 bytes

The attached patch implement the suggested solution.

justafish’s picture

Status: Needs review » Fixed

Committed, thanks!

  • justafish committed 185f732 on 7.x-1.x authored by mongolito404
    Issue #2329977 by mongolito404: When a file is written to, its file size...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.