Back

.wav files have wrong mimetype on appwrite storage??

  • 0
  • React Native
  • Storage
  • Cloud
djimon
20 Oct, 2024, 11:05

I am using react native trackplayer for audio playback in my app. I am streaming songs in my app from the appwrite storage bucket. Everything works fine with .mp3 files but it has problems with the .wav files. So I looked inside the bucket to see whats wrong. When I try to open .wav via the from appwrite provided url the browser actually does not interpret the file as an audio file and is displaying the content as raw binary txt. I assume the trackplayer is doing the same thing so that is why it is having problems. I do not want to need to download the file first so how can I get around this problem? here is what the browser displays after accessing the url:

TL;DR
Developers facing issue with .wav files in Appwrite storage when streaming in React Native app. .mp3 files work fine but .wav files display as raw binary txt instead of audio. Content not interpreted correctly creating playback problems. Seeking solution to avoid downloading files.Issue raised in GitHub for Appwrite.
djimon
20 Oct, 2024, 11:18

this is in the response header:

D5
20 Oct, 2024, 13:53

I can confirm. I face the same issue. Do you can create a GitHub issue for this?

djimon
21 Oct, 2024, 03:18
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more