Attachment size does not always return an integer
The get_size
method set a context to format the data
field with size but indeed it set the wrong name (data_size
) in the context. It works in the views if the data
field is also displayed because the client set the correct context but it crashes if the data
is not read also.