Is it possible to map all file extensions in a folder to a specific HttpHandler (assuming that their file extensions are mapped to aspnet_isapi.dll in IIS) ?
I've got the FLV extension mapped to ASP.NET in IIS, and have a folder named Static in my web application with the following files:
- Static/Index.htm
- Static/MyFile.flv
The index file is a basic html page using the JW FLV Media Player to play the FLV.
In Web.Config, under the HttpHanders section, the following works (FLV is loaded and plays successfully):
<add verb="*" path="MyFile.flv" type="MyApp.PassthroughFileHandler, MyApp"/>
But this doesn't (video cannot be loaded):
<add verb="*" path="Static/*" type="MyApp.PassthroughFileHandler, MyApp"/>
I've tried various combinations, without much luck.
Ideally, I'd like to be able to have all FLV's in the Static folder use the PassthroughFileHandler, rather than have to specify each filename individually in web.config.