I have multiple images but i have changed the extension for my own purpose. So I have multiple extension. When I try to display my image I got an error that my extension is not mapped to a mime type. So how can I display my image without changing the extension because I have a lot. With Apache wamp server I tested all images and it can be displayed.
Then with IIS express included within visual studio 2017, is there a way to do the mapping. I also did the mapping individually but this cannot be good solution for me because I have many images file.
You can change the config file that IIS express use it:
If you run iisexpress.exe from the command line, the config file it uses will be in AppServer/applicationhost.config
. Add the mime types you need to that file in the section <staticContent> and restart iisexpress.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With