I spent the afternoon scratching my head after moving some Flash video files from my dev machine up to the web. Being essentially multi-threaded I did do some other stuff as well so it probably wasn’t as big of a problem as I am making out. Anyway…
I eventually had an epiphany and checked the MIME types on the server. The gist of these is that IIS only serves files that it has a MIME type for which it matches to the file extension.
By default, .flv isn’t there and thus IIS doesn’t serve the file.
To remedy this:
- Go to the site in question in the IIS snap-in
- Right click and open the properties for the site
- Go to the HTTP Headers tab
- At the bottom of said tab is a ‘MIME Types’ button which you’ll be wanting to click at this stage
- Add a new type with the file extension .flv and the MIME type of video/x-flv.
- Press however many ‘Yes’, ‘Apply’, ‘Finish’ or ‘OK’ buttons you need to get rid of it all…
And voila… You should be in business.