feat: Activestorage direct upload (#3768)

This commit is contained in:
Tejaswini Chile
2022-01-27 15:57:22 +05:30
committed by GitHub
parent cd6c9a8fe9
commit 69eaf3ff7f
9 changed files with 84 additions and 14 deletions

View File

@@ -31,7 +31,6 @@ class Api::V1::Widget::MessagesController < Api::V1::Widget::BaseController
params[:message][:attachments].each do |uploaded_attachment|
@message.attachments.new(
account_id: @message.account_id,
file_type: helpers.file_type(uploaded_attachment&.content_type),
file: uploaded_attachment
)
end