Open orchardbot opened 11 years ago
@sebastienros commented:
Currently you can register those mime types in your web.config file, and it will be used when saving files in blobs using the media picker. Not sure we should add that in this script, and also by default. TBD
fotisgpap commented:
Its just a proposition for those who want to add video files or any mime types, if you just put them in your web.config, azure will not handle them correctly and if you try to view them with some html 5 video players like sublimevideo.net. the browser will try to download them instead of play them in place. Storage explorer also identifies them as unknown. This is a workaround.
@sebastienros commented:
I meant that this is a feature in Orchard that when using the media types in the web.config, it will save the mimetype to the blob's metadata itself and Azure will correctly return the appropriate mimetype.
@sebastienros commented:
To be discussed later
fotisgpap created: https://orchard.codeplex.com/workitem/19139
This is a generic azure issue, for iis to be able to recognize video file types we have to add video file extensions, now that you put configureiis.cmd (1.6) it is possible to add these lines inside the cmd and azure will be able to run ok with videos.
%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.mp4',mimeType='video/mp4']"
%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.m4v',mimeType='video/mp4']"
%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.ogg',mimeType='video/ogg']"
%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.webm',mimeType='video/webm']"