Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix size on File object after optimizing #3

Merged
merged 1 commit into from
Apr 1, 2020
Merged

Fix size on File object after optimizing #3

merged 1 commit into from
Apr 1, 2020

Commits on Apr 1, 2020

  1. Fix size on File object after optimizing

    Since the size attribute/property on a File object is a cached_property, we need to make sure we update it after changing the data since it might already have cached the old size.
    
    This becomes important because Google Cloud Storage's client library refuses to upload a File object if there's not as much data as the size says there is.
    dpoirier committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    4be78de View commit details
    Browse the repository at this point in the history