diff options
Diffstat (limited to 'connector/mediaobject.go')
-rw-r--r-- | connector/mediaobject.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connector/mediaobject.go b/connector/mediaobject.go index c6634b7..a8d6f9a 100644 --- a/connector/mediaobject.go +++ b/connector/mediaobject.go @@ -97,7 +97,6 @@ func (m *UrlMediaObject) URL() string { type BlobMediaObject struct { ObjectFilename string - ObjectSize int64 ObjectMimetype string ObjectImageSize *ImageSize ObjectData []byte @@ -108,7 +107,7 @@ func (m *BlobMediaObject) Filename() string { } func (m *BlobMediaObject) Size() int64 { - return m.ObjectSize + return int64(len(m.ObjectData)) } func (m *BlobMediaObject) Mimetype() string { |