Ruby on rails 4 曲别针无法上载mp3文件

Ruby on rails 4 曲别针无法上载mp3文件,ruby-on-rails-4,audio,paperclip,mp3,Ruby On Rails 4,Audio,Paperclip,Mp3,我正在尝试将音频文件上载到我的网站。然而,曲别针无法上传我试图上传的任何mp3文件。由于某些原因,虽然我可以上传wav文件。我发现了类似的问题,但没有一个答案对我有效。任何建议都将不胜感激 Audio.rb 错误 has_attached_file :audio validates_attachment_content_type :audio, content_type: ['application/mp3','application/x-mp3', 'audio/mpeg', ['audio/

我正在尝试将音频文件上载到我的网站。然而,曲别针无法上传我试图上传的任何mp3文件。由于某些原因,虽然我可以上传wav文件。我发现了类似的问题,但没有一个答案对我有效。任何建议都将不胜感激

Audio.rb 错误
has_attached_file :audio
validates_attachment_content_type :audio, content_type: ['application/mp3','application/x-mp3', 'audio/mpeg', ['audio/mpeg'], 'audio/mp3']
validates_attachment_size :audio, :less_than => 35.megabytes
[paperclip] Content Type Spoof: Filename test.mp3 (binary/octet-stream from Headers, ["audio/mpeg"] from Extension), content type discovered from 
file command: audio/mpeg. See documentation to allow this combination.
[paperclip] Content Type Spoof: Filename test.mp3 (binary/octet-stream from Headers, ["audio/mpeg"] from Extension), content type discovered from file command: audio/mpeg. See documentation to allow this combination.
(0.1ms)  ROLLBACK
(0.1ms)  ROLLBACK