I’ve recently started working with Flash a lot more recently and while its proving good fun, I had forgotten how frustrating it can sometimes be. I recently created a flash video player from scratch and while it worked wonderfully on my computer and local server in work, it was flat out refusing to load the video (.flv) file when I uploaded it to the live site. After much wracking of my brain and some mild/agressive abuse at my monitor (why do we do that, its a machine, it won’t talk back…) I found the solution I was looking for.
The site I was uploading to is built in ASP.net and as a result in running on Windows Server 2003, what I didn’t know was that .flv it isn’t one of the native MIME types on MS servers and as a result has to be set up using the IIS. This is how its done.
1) Select the site to configure in IIS, right click and select “Properties”
2) Under HTTP Headers Tab, select “File Types” under the MIME Map section and select “New Type”
3) Type “.flv” as the associated extension and “video/x-flv” as the content type.
4) Select “OK” and you’re ready to fly!
I was so delighted to work this out I had to share it with you. Hope it helps anyone who’s having the same problem!
p.s. Thanks to Ryan Moore ITToolbox, for helping me find the solution.
Tags: flash, IIS
WHAT TO DO NOW?