chore: add file size to response (#5054)
Add file_size to the attachment response to display the file size in chat. Fixes: #4992
This commit is contained in:
@@ -68,7 +68,8 @@ class Attachment < ApplicationRecord
|
||||
{
|
||||
extension: extension,
|
||||
data_url: file_url,
|
||||
thumb_url: thumb_url
|
||||
thumb_url: thumb_url,
|
||||
file_size: file.byte_size
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user