Feat: Support MMS in SMS Channel ( Bandwidth ) (#4046)

Ability to send and receive MMS to bandwidth channel

fixes: #3961
This commit is contained in:
Sojan Jose
2022-03-02 15:09:56 +05:30
committed by GitHub
parent 4d458c2184
commit 7b9e4982cf
9 changed files with 133 additions and 26 deletions

View File

@@ -48,6 +48,10 @@ class Attachment < ApplicationRecord
file.attached? ? url_for(file) : ''
end
def download_url
file.attached? ? rails_storage_proxy_url(file) : ''
end
def thumb_url
if file.attached? && file.representable?
url_for(file.representation(resize: '250x250'))