fix: check the content type for the file when uploading from cloud storage (#5378)

When sending the message with audio, only the signed id of the file is sent.
In the back end check only the UploadedFile type.
The attachment has the default file type image, now it gets the content type from the signed id

Fixes: #5375

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
jacsonsantospht
2022-10-21 22:05:36 -03:00
committed by GitHub
parent 6823b04e5b
commit af020f446e
5 changed files with 51 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ RSpec.configure do |config|
# arbitrary gems may also be filtered via:
# config.filter_gems_from_backtrace("gem name")
config.include SlackStubs
config.include FileUploadHelpers
config.include Devise::Test::IntegrationHelpers, type: :request
config.include ActiveSupport::Testing::TimeHelpers
config.include ActionCable::TestHelper