Windows Azure - Serve unknown (mp4) MIME types in Windows Azure IIS storage

前端 未结 4 1472
星月不相逢
星月不相逢 2020-12-08 11:21

I have a windows azure deployment (a web-role) that on request pulls in a pair of video files (mov and mp4) from azure storage into it\'s own local IIS storage, which I then

4条回答
  •  孤街浪徒
    2020-12-08 11:52

    To configure the mime type, create a new web.config file with this content in the video folder:

    
    
      
         
            
            
         
      
    
    

    This solution works for Azure only, the local project may no longer work. My solutions is to use "Add Config Transform" for the plublication with an empty web.config file for local project:

    
    
    
    

    And when you right click on web.config, select "Add Config Transform":

    In the web.Release.config file add this into de configuration tag:

    
      
        
        
      
    
    

提交回复
热议问题