Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Preview audio/vnd.wave in Chrome #41

Closed
Raj-Kumar-P opened this issue Apr 8, 2021 · 1 comment · Fixed by #45
Closed

Unable to Preview audio/vnd.wave in Chrome #41

Raj-Kumar-P opened this issue Apr 8, 2021 · 1 comment · Fixed by #45

Comments

@Raj-Kumar-P
Copy link

Raj-Kumar-P commented Apr 8, 2021

I am using active storage(5.2.5)

On .wav file uploading it shows content type as 'audio/wav' in direct upload. After active_storage_attachments create, mimemagic gem updates the content type as audio/x-wav. And the same file previewing in chrome.

But after changing to marcel it saves the content type as 'audio/vnd.wave'. While debugging, active_storage / blob / identifiable updates the content types. And 'audio/vnd.wave' not previewed in chrome, but safari allows previewing.

So, tried to comment the lines to update on active_storage/blob/identifiable. It updates the content type as audio/x-wav and allows it to preview in Chrome.

Tried to add configuration in application.rb

config.active_storage.content_types_allowed_inline += %w[audio/wave audio/vnd.wave audio/wav audio/x-wav audio/x-pn-wav]

But unable to preview the audio/vnd.wave extension files in chrome.

Do I need to update any configurations to preview the .wav extension file in Chrome?

Hope understand my issue. Please help me to identify the issue.

@johnnyshields
Copy link

johnnyshields commented May 6, 2021

I am also having issues related to this audio/vnd.wave change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants