Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Accepted MIME Type on Azure without Web.Config

I want to show an .mp4 as a background video on a website I created and deployed to Azure via FTP. Unfortunately, accessing the background video always gives me a 404. The pages are all .html files using AngularJS.

I figure that I need to add a custom mime type for .mp4s. Normally this would be done in the Web.Config, but since it was just something I whipped up in Notepad++ I don't have (and besides this issue, haven't really had need for) a Web.Config.

I was looking at the Configuration section in the Azure Portal for the site and can see where I can add connection strings and appSettings, but I don't see anything where I can do MIME types.

Is allowing .mp4s on Azure possible through the portal, or is my only option to make a Web.Config and FTP that up too?

like image 808
chriszumberge Avatar asked Mar 14 '15 13:03

chriszumberge


People also ask

How do you set a MIME content-type?

Click Content Settings. Click the MIME tab in the form. Edit the default content-type, content-language, and character set values as necessary. Optional: If necessary, select File extensions are case sensitive to distinguish between uppercase and lowercase letters when comparing file extensions.

How do I change the connection string in Azure App Service?

Configure connection strings. In the Azure portal, search for and select App Services, and then select your app. In the app's left menu, select Configuration > Application settings. For ASP.NET and ASP.NET Core developers, setting connection strings in App Service are like setting them in <connectionStrings> in Web.


1 Answers

The only way to do this is via the Web.config file. This link below will help you configure the settings in web.config:

Use SVG in Windows Azure Websites

like image 76
cory-fowler Avatar answered Oct 11 '22 18:10

cory-fowler