Play audio .flac vs .fla in IIS via virtual directory

149 Views Asked by At

I do have an audio angular app with Microsoft dotnet core 6 backend and many audio files accesses via virtual directory. I can access any files except files with .flac extension (I have added .flac and audio/flac to mime type file in IIS). The error code is 404. However, if I change the file extension from .flac to .fla then it works and I can play it as Flac file. How can I tell the iis to accept/ access the .flac file? I am running windows 10 64bit with IIS.

Thanks.

1

There are 1 best solutions below

0
Nosyarg On

I had to add the MIME type in the root of IIS - not in the individual site settings.

I've set .flac to audio/flac and Chrome streams it fine.

Good luck!