Opened 7 years ago

Closed 7 years ago

#29188 closed Bug (fixed)

ContentFile.size remains constant after initializing

Reported by: Maksim Iakovlev Owned by: Alex Stovbur
Component: File uploads/storage Version: 1.11
Severity: Normal Keywords:
Cc: Alex Stovbur Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

>>> cf = ContentFile('')
>>> cf.size
0
>>> cf.write('asd')
3L
>>> cf.size
0

Change History (5)

comment:1 by Tim Graham, 7 years ago

Component: UncategorizedFile uploads/storage
Triage Stage: UnreviewedAccepted

comment:2 by Alex Stovbur, 7 years ago

Cc: Alex Stovbur added
Owner: changed from nobody to Alex Stovbur
Status: newassigned

comment:3 by Alex Stovbur, 7 years ago

Has patch: set

comment:5 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 2d9ec4d7:

Fixed #29188 -- Fixed ContentFile.size after a write().

Note: See TracTickets for help on using tickets.
Back to Top